Jump to content

Trouble sending e-mails in a script


Recommended Posts

Hey everyone, I've been having an issue sending an email in a PHP script using the regular PHP mail function, and the wpmail Wordpress function. I can send e-mails to almost every e-mail address I can think of, and it works fine, but when I try to send it to my clients e-mail, nothing happens, doesn't even get sent to the junk folder. The e-mail in question is one on their own server, like john.smith@mywebsite.com.I could usually just test my way through this, but the client does not want to provide me with a test e-mail account. What is the best way to verify that each e-mail is going to be sent? I don't have a lot of experience with this in general, so any help would be appreciated.

Link to post
Share on other sites

You can't verify that it's going to be sent, you can only verify that PHP delivered it to the mail transfer agent. If you're sending to the domain on the same server and it's not going through then it sounds like the server has a misconfigured DNS, where it's trying to send the mail outside of the network. Try to use just the account name without the domain and see if it gets delivered.

Link to post
Share on other sites

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.   Paste as plain text instead

  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.

Loading...
×
×
  • Create New...