Jay Blanchard wrote:
$poot = ini_set("sendmail_from", 'foo@xxxxxxxxxxxx');
$smsTo = $_POST['smsPhone'] . '@sms.myserver.com';
$to = $smsTo;
$subject = $_POST['smsSubject'];
$message = $_POST['smsMessage'];
$headers = 'From: '. $poot . "\r\n" .
'Reply-To: '. $poot . "\r\n";
echo $to;
mail($to, $subject, $message, $headers);
What platform are you on? If you're on a UNIX variant you want to use
the secret 5th parameter of mail like so...
$fromaddress = 'from@xxxxxxxxxx';
mail($to, $subject, $message, $headers, '-f'.$fromaddress);
If you're on Windows AFAIK you're stuffed unless you use a class to send
the mail directly - see phpclasses et al for that sort of thing.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php