PEAR::Mail
public php v1 · immutable<?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);?>