PHP Classes

File: urgent_mail.php

Recommend this page to a friend!
  Classes of Manuel Lemos   MIME E-mail message sending   urgent_mail.php   Download  
File: urgent_mail.php
Role: Auxiliary script
Content type: text/plain
Description: mail() function replacement for urgent message delivery connecting directly to the recipient SMTP server and fallback to the mail function in case of temporary failure
Class: MIME E-mail message sending
PHP mailer to compose and send MIME messages
Author: By
Last change: Initial revision.
Date: 11 years ago
Size: 1,586 bytes


Class file image Download
 * urgent_mail.php
 * @(#) $Header: /opt2/ena/metal/mimemessage/urgent_mail.php,v 1.1 2004/07/27 07:53:54 mlemos Exp $

$urgent_message=new smtp_message_class;
$urgent_message->localhost="localhost"; /* This computer address */
$urgent_message->smtp_host="localhost"; /* SMTP server address - irrelevant in this case*/
$urgent_message->smtp_direct_delivery=1; /* Deliver directly to the recipients destination SMTP server for urgent delivery */
$urgent_message->smtp_exclude_address=""; /* In directly deliver mode, the DNS may return the IP of a sub-domain of the default domain for domains that do not exist. If that is your case, set this variable with that sub-domain address. */
$urgent_message->timeout=15; /* Adjust the SMTP connection timeout according to what you think it is reasonable to wait before it falls back to normal mail function delivery */
     * If the GetMXRR is not functional, you need to use a replacement function.
$urgent_message->smtp_debug=0; /* Output dialog with SMTP server */
$urgent_message->smtp_html_debug=1; /* If smtp_debug is 1, set this to 1 to output debug information in HTML */

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