Hi there. I am sending SMS-messages to different canadian gateways and want the "sender" to be a number only. But my server automatically adds @vps0432.domain.com. Does anybody know how i can prevent this from happening? These are my last 2 lines of code: $sender = "403123132123"; $extra = "From: $sender\r\n" . "Reply-To: $sender \r\n" . "X-Mailer: PHP/" . phpversion(); Code (markup): Thanx m.
Try $extra = 'From: '.$sender.' <'.$sender.'>'. "\r\n"; Code (markup): however, I believe it depends on the server configuration also... You can also check the line with sendmail_path in your php.ini to see how it is configured...