Forums

wp_mail() and emails from same domain name (4 posts)

  1. cooperanet
    Member
    Posted 11 months ago #

    Hi,

    For one of my plugin, I use the wp_mail() function to send an email confirmation when a user subscribes to my newsletter.

    It works fine except that when I subscribe with an email which have the same domain name that the website, there's no email sent.

    Would it be a server configuration problem or a bug with the wp_mail() function.

    Any help would be greatly appreciated!

  2. apljdi
    Member
    Posted 11 months ago #

    So what you mean is that your site is, say, 'cooperanet.com' and you do get emails if you subscribe with 'me@gmail.com' but not when you subscribe with 'me@cooperanet.com'? I've never noticed that issue myself. Is this only with your newsletter plugin or do you see the same problem with WordPress user registrations? The answer to that should narrow things down a little.

  3. cooperanet
    Member
    Posted 11 months ago #

    Hi apljdi, thanks for your response.

    Yes that's exactly the problem but it finally seems to be a server configuration problem, not a problem within the wp_mail() function. Something is missing or blocking the emails. If I find out why, I will post a solution in this topic.

  4. apljdi
    Member
    Posted 10 months ago #

    Its really, really weird that you can send to external domains but not to addresses in your own domain. I have seen the reverse problem where email would not be sent to external domains. That was a "server config + bad password" problem.

Reply

You must log in to post.

About this Topic