Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 8 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="sender@sendhost.com";
$email->to="receiver@receipthost.com";
$email->mailserv="mail.hotmail.com";
$email->servport="25";
$email->send();
?>