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 = "mike@domain.com"; $subject = "Test mail"; $message = "Hello! This is a simple email message."; $from = "mike@domain.com"; $headers = "From: $from"; mail($to,$subject,$message,$headers); echo "Mail Sent."; ?> Quote Link to comment 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 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.