Jump to content

testing php mail function


wright67uk

Recommended Posts

<?php
$to      = '[email protected]';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: [email protected]' . "\r\n" .
    'Reply-To: [email protected]' . "\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?  

Link to comment
https://forums.phpfreaks.com/topic/297316-testing-php-mail-function/
Share on other sites

 

 

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 ....

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.