flemingmike Posted October 12, 2010 Share Posted October 12, 2010 hello, im running my page on a seperate server than my exchange server. how would i set the smtp server in the following: <?php $to = "[email protected]"; $subject = "Test mail"; $message = "Hello! This is a simple email message."; $from = "[email protected]"; $headers = "From: $from"; mail($to,$subject,$message,$headers); echo "Mail Sent."; ?> Quote Link to comment https://forums.phpfreaks.com/topic/215721-set-smtp/ Share on other sites More sharing options...
trq Posted October 12, 2010 Share Posted October 12, 2010 You need to sset your smtp setting within your php.ini or at very least use ini_set. Quote Link to comment https://forums.phpfreaks.com/topic/215721-set-smtp/#findComment-1121547 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.