Re: SMS E-Mail and other oddities

From: Date: Thu, 11 May 2006 20:39:12 +0000
Subject: Re: SMS E-Mail and other oddities
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-236020@lists.php.net to get a copy of this message
Jay Blanchard wrote:
$poot = ini_set("sendmail_from", 'foo@myserver.com'); $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@domain.com'; 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

« previous php.general (#236020) next »