note 34334 added to ref.mail
| From: | hzmz at bofh dot auca dot kg | Date: | Thu, 24 Jul 2003 09:16:52 +0000 |
| Subject: | note 34334 added to ref.mail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-52542@lists.php.net to get a copy of this message | ||
If you are trying to send mail and you are in chroot. You can do it via your smtp server.
<?
include_once 'Mail.php';
$headers['Subject'] = 'Your subject';
$headers['From'] = 'user1@your.domain.com';
$params['host'] = '127.0.0.1';
$mailer = &Mail::factory('smtp', $params);
$status =$mailer->send('user@your.domain.com', $headers, 'your message');
if (PEAR::isError($status)) {
print("***ERROR");
}
?>
Thanks to Horde team: http://www.horde.org
----
Manual Page -- http://www.php.net/manual/en/ref.mail.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34334
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34334&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34334&report=yes