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."; ?> 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. Link to comment https://forums.phpfreaks.com/topic/215721-set-smtp/#findComment-1121547 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.