Forum Moderators: coopster
<?php
include('Mail.php');$recipients = 'anshul@example.com';
$headers['From'] = 'richard@example.com';
$headers['To'] = 'anshul@example.com';
$headers['Subject'] = 'Test message';$body = 'Test message';
$params['sendmail_path'] = '/usr/lib/sendmail';
// Create the mail object using the Mail::factory method
$mail_object =& Mail::factory('sendmail', $params);$mail_object->send($recipients, $headers, $body);
?>
[edited by: coopster at 12:16 pm (utc) on May 7, 2005]
[edit reason] generalized email TOS [webmasterworld.com] [/edit]
<?phpSo, I'm sure I'll use MAIL_QUEUE in few minutes from now! But how can I knew details of PEAR configuration/installation/modules through a PHP script ( Example 49-1. Using PEAR_Info )?
include('Mail/mail.php');$recipients = 'anshul@example.com';
$headers['From'] = 'richard@example.com';
$headers['To'] = 'anshul@example.com';
$headers['Subject'] = 'Test message';$body = 'Message <!-- just testing -->';
$params['sendmail_path'] = '/usr/lib/sendmail';
// Create the mail object using the Mail::factory method
$mail_object =& Mail_mail::factory('sendmail', $params);$mail_object->send($recipients, $headers, $body);
?>
[edited by: coopster at 12:17 pm (utc) on May 7, 2005]
[edit reason] generalized email TOS [webmasterworld.com] [/edit]