PHP Classes

File: test_email_message.php

Recommend this page to a friend!
  Classes of Manuel Lemos  >  MIME E-mail message sending  >  test_email_message.php  >  Download  
File: test_email_message.php
Role: Example script
Content type: text/plain
Description: MIME E-mail message class test script
Class: MIME E-mail message sending
PHP mailer to compose and send MIME messages
Author: By
Last change: Avoided PHP short tag.
Date: 10 years ago
Size: 1,804 bytes


Class file image Download
 * test_email_message.php
 * @(#) $Header: /opt2/ena/metal/mimemessage/test_email_message.php,v 1.6 2003/10/05 17:32:56 mlemos Exp $


$to_name="Manuel Lemos";
$subject="Testing Manuel Lemos' MIME Email composition PHP class: some non-ASCII characters in a message header";
$message="Hello ".strtok($to_name," ").",\n\nThis message is just to let you know that your e-mail sending class is working as expected.\n\nHere's some non-ASCII characters in the message body to let you see if they are sent properly encoded.\n\nThank you,\n$from_name";
$email_message=new email_message_class;
    Set the Return-Path header to define the envelope sender address to which bounced messages are delivered.
    If you are using Windows, you need to use the smtp_message_class to set the return-path address.
"Error: $error\n";

For more information send a message to info at phpclasses dot org.