PHP Classes

File: sample.php

Recommend this page to a friend!
  Classes of Dolly Aswin Harahap   Easy Mail   sample.php   Download  
File: sample.php
Role: Example script
Content type: text/plain
Description: Sample of use this class
Class: Easy Mail
Compose and send HTML messages with attachments
Author: By
Last change: Change use of this class
Date: 18 years ago
Size: 860 bytes
 

Contents

Class file image Download
<?php
/**
 * vim: ts=4: sw=4: cin: fdm=marker:
 * CVS : $Id: sample.php,v 1.2 2006/04/12 02:53:57 mynusa Exp $
 */

include('Easy_Mail.class.php') ;
$file = "handbook.pdf" ; // File name or path Example : file/image.gif
$html = "<b><i>Tes Mail.class.php</i></b>" ;
$message= "Tes aja" ;
$subject= "Recovery Easy_Email.class.php" ;
$to = "dolly.aswin@gmail.com" ;
$from = "Dolly Aswin Hrp <dolly.aswin@nusa.net.id>" ;
$return = "dolly.aswin@nusa.net.id" ;
$mail = &new Easy_Email($from, $to, $subject, $return) ;
$mail->simpleMail($message) ; // Use this to send simple email
$mail->htmlMail($html) ; // Use this to send html email
$mail->simpleAttachment($file,$message) ; // Use this to send simple email with attachment
$mail->htmlAttachment($file,$html) ; // Use this to send html email with attachment
?>