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 protected]"; $subject = "Test mail"; $message = "Hello World."; $headers = "From: [email protected]" . "\r\n"; mail($to,$subject,$message,$headers); echo "Mail Sent."; ?> Link to comment https://forums.phpfreaks.com/topic/203255-mail-function-not-working-on-a-particular-domain/ 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 Link to comment https://forums.phpfreaks.com/topic/203255-mail-function-not-working-on-a-particular-domain/#findComment-1064929 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 Link to comment https://forums.phpfreaks.com/topic/203255-mail-function-not-working-on-a-particular-domain/#findComment-1074610 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.