• Hi all,

    I know this has probably been asked a thousand times, but I’ve Googled it to death and I’m still stumped.

    I’ve tested the PHP mail() function directly through PHP and it works

    I’ve tested sending email using a plugin called Check Email and it works

    When a user registers no emails are sent and nothing appears in any logs so I’ve no way to figure out what’s wrong.

    Please don’t suggest a plugin for sending emails, WordPress should be able to send emails without external help.

    Thanks for looking

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Have you checked with your hosts regarding any SMTP filtering at their end?

    Thread Starter tricericci

    (@tricericci)

    I’m my own host, I run my own email server

    Understood. Here’s a couple of links you might find useful:

    https://wpforms.com/send-emails-wordpress-using-smtp-step-step/
    https://www.siteground.com/tutorials/wordpress/use-smtp/

    The second link advises using an smtp plugin which I know you don’t want as a final solution but it might be worth trying it out to see what happens.

    Thread Starter tricericci

    (@tricericci)

    The first link seems to concentrate on using external email services, I don’t want to do that since I have a working email setup already, it’s just the registration side that’s not sending emails and I’ve got no logs to tell me why.

    If I can’t find a solution I’ll have to try a plugin, but that’s a last resort ??

    Thread Starter tricericci

    (@tricericci)

    Ok, found a script to check if wp_mail was working, and it is, but still trying to register a new subscriber doesn’t send any emails and doesn’t generate any logs.

    I’ve tried a few SMTP plugins but they can’t cope with my ‘main’ mail server’s security (cram-md5 login etc.)

    Still baffled

    Thread Starter tricericci

    (@tricericci)

    Another update…

    Tried disabling all plugins
    Set selinux to disabled (was permissive so shouldn’t (and didn’t) make any difference)
    Reinstalled WordPress from the Updates tab

    Still no registration emails or logs to say why not

    siggy112

    (@siggy112)

    Hi i have the exact same problem. But i did try several plugins and the theme also has built in smtp settings. The contact form works, only the registration email is not sent out. But i do have the email logs. The problem i see, i think, is that if the script is emailing, then it doesnt work, but if a direct user interaction is used (check email plugin or contact form), then it works.

    I’ve read that an email must be created on the server with that domain, will try that, otherwise i have a big problem

    siggy112

    (@siggy112)

    I’m a bit further, No php errors, no smtp errors. I get the impression that the mail function is simply not called when registering the user. No clue why though. Will search for a way to check this, but i’m pretty sure of this.

    I also noticed that testmails from command line in my vps are denied by gmail because of ipv6 standards, outlook accepts them without trouble. Since this doesn’t happen with the registration mails, I’m convinced they’re just not being sent. This action seems to be missing, I assume because of the theme, but will try to install a different registration system with built in smtp settings, perhaps of wp forms, their wp gmail smtp also works. Will report later today, hopefully with solution.

    siggy112

    (@siggy112)

    Update on the email problem. The built in SMTP options of the theme don’t work, at least, not for gmail. It seems the theme is overruling any and all other smtp plugins which do work. This is why the contact form works, i think it works with wp_mail, which is being overridden by gmail smtp plugin by wpforms, but the user registration is not or cannot be overridden by the plugin. I understand why, it’s not standard and 2 users are being made, one for REM and one for wordpress, which are equal to another. I’ll see if i can hack the theme mailer back to wp_mail somehow, which is run by the gmail smtp plugin.

    Thread Starter tricericci

    (@tricericci)

    It’s been two months and I’m afraid I can’t remember how I fixed it. The only major change I made was moving from https on just wp-admin, registration and login pages to https on the whole site.

    If the server hosting your blog isn’t the same one that normally sends email for your domain, you’ll probably need to edit your SPF file to show that the blog server is allowed to send email for the domain.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Registration emails not being sent’ is closed to new replies.