PHP Classes

File: sendmail_mail.php

Recommend this page to a friend!
  Classes of Manuel Lemos   MIME E-mail message sending   sendmail_mail.php   Download  
File: sendmail_mail.php
Role: Auxiliary script
Content type: text/plain
Description: Mail() emulation function using sendmail_message_class
Class: MIME E-mail message sending
PHP mailer to compose and send MIME messages
Author: By
Last change: Added an example of setting the bulk_mail_delivery_mode to define the
delivery mode of messages for use bulk mail mode.
Date: 11 years ago
Size: 1,681 bytes


Class file image Download
 * sendmail_mail.php
 * @(#) $Header: /opt2/ena/metal/mimemessage/sendmail_mail.php,v 1.2 2004/10/05 18:57:33 mlemos Exp $


$message_object=new sendmail_message_class;
$message_object->delivery_mode=SENDMAIL_DELIVERY_DEFAULT; /* Mode of delivery of the message. Supported modes are:
                                                               * SENDMAIL_DELIVERY_DEFAULT - Default mode
                                                               * SENDMAIL_DELIVERY_INTERACTIVE - Deliver synchronously waiting for remote server response.
                                                               * SENDMAIL_DELIVERY_BACKGROUND - Deliver asynchronously without waiting for delivery success response.
                                                               * SENDMAIL_DELIVERY_QUEUE - Leave message on the queue to be delivered later when the queue is run
                                                               * SENDMAIL_DELIVERY_DEFERRED - Queue without even performing database lookup maps.
$message_object->bulk_mail_delivery_mode=SENDMAIL_DELIVERY_QUEUE; /* Mode of delivery of the message when the class is set to the bulk mail delivery mode */
$message_object->sendmail_arguments=""; /* Additional sendmail command line arguments */

Function sendmail_mail($to,$subject,$message,$additional_headers="",$additional_parameters="")