thestars Posted May 29, 2010 Share Posted May 29, 2010 Hi, I used the PHP mail function for sending email. The script below works on one server, but not another. Mail sent successfully but cannot be retrieved . Does anyone know whats going on?Is it anything related to domain? <?php $to = "email@example.com"; $subject = "Test mail"; $message = "Hello World."; $headers = "From: someonelse@example.com" . "\r\n"; mail($to,$subject,$message,$headers); echo "Mail Sent."; ?> Quote Link to comment Share on other sites More sharing options...
FD_F Posted May 29, 2010 Share Posted May 29, 2010 you can check sendmail logs if you own the server if not ask the hosting company support i prefer using phpmailer and prevent this kind of problems Quote Link to comment Share on other sites More sharing options...
calvinklein Posted June 20, 2010 Share Posted June 20, 2010 Hello, Its your hosting servers problem. You cannot do anything it yourself but just to inform them through live chat or mailing them about the problem. website development australia 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.