All pastes #266870 Raw Edit

PEAR::Mail

public php v1 · immutable
·published 2006-12-04 13:08 UTC
rendered paste body
<?phpinclude('Mail.php');$recipient = 'john.doe@yahoo.com';$headers['From']    = 'ABC Inc. Account Service <accounts@abcinc.com>';$headers['To']      = 'John Doe <' . $recipient . '>';$headers['Subject'] = 'important inforamtion';$body = 'Hello there. Goodbye.';$params['sendmail_path'] = '/usr/sbin/sendmail';$mail_object =& Mail::factory('sendmail', $params);var_dump ($mail_object->send($recipient, $headers, $body));var_dump($mail_object);?>