PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of nathan zadoks   Simple Mail Class   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example
Class: Simple Mail Class
Send e-mail messages relaying to an SMTP server
Author: By
Last change: Missing send()
Date: 19 years ago
Size: 329 bytes
 

Contents

Class file image Download
<?php
require("simplemail.class");
$email=new email();
$email->body="A sample text\n";
$email->headers="Content-type: text/plain";
$email->subject="A sample Email";
$email->from="[email protected]";
$email->to="[email protected]";
$email->mailserv="mail.hotmail.com";
$email->servport="25";
$email->send();
?>