wright67uk Posted July 15, 2015 Share Posted July 15, 2015 <?php $to = 'website@mysite.com'; $subject = 'the subject'; $message = 'hello'; $headers = 'From: website@mysite.com' . "\r\n" . 'Reply-To: website@mysite.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers); ?> All of my websites contact forms have stopped working, so I decided to use the above file as a test. ...no email is sent. Although godaddy will not admit it there is an issue with my hosting account. Is there a way I can bypass godaddy and use a third part service to send my emails until this server issue has been resolved? Can you recommend any hosting providers that are more reliable? Quote Link to comment https://forums.phpfreaks.com/topic/297316-testing-php-mail-function/ Share on other sites More sharing options...
dalecosp Posted July 15, 2015 Share Posted July 15, 2015 Can you recommend any hosting providers that are more reliable? Hate to say it, but most any of 'em?I like RootBSD.net, but it ain't Linux. BSD is faster, but much more bare-bones, generally speaking. I grok the command line, but not everyone does, nor does everyone wish to .... Quote Link to comment https://forums.phpfreaks.com/topic/297316-testing-php-mail-function/#findComment-1516496 Share on other sites More sharing options...
fastsol Posted July 15, 2015 Share Posted July 15, 2015 Yes Godaddy is terrible and honestly should not be used even if they fix the server issue. They have tons of accounts on blacklists for email, so it's highly advised not to use them. Your best alternative at this point would be to use a SMTP service. I suggest making a gmail account for each business website and use phpmailer to send the emails through SMTP to gmail. Quote Link to comment https://forums.phpfreaks.com/topic/297316-testing-php-mail-function/#findComment-1516497 Share on other sites More sharing options...
wright67uk Posted July 16, 2015 Author Share Posted July 16, 2015 Thankyou for the advice. I went with ipage, a 5th of the price, twice the speed and php mail() is working! I'm working on phpmailer to make things even more reliable. Quote Link to comment https://forums.phpfreaks.com/topic/297316-testing-php-mail-function/#findComment-1516590 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.