Jump to content

testing php mail function


wright67uk

Recommended Posts

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

Link to comment
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 ....

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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