• Resolved Daniel

    (@ddumondgmailcom)


    Hey Mike!

    I found some useful questions in this forum to help troubleshoot potential problems with sending through your plugin.

    But for some reason, emails are not being sent out.

    Here are my answers to your questions…

    On the Settings page (Dashboard > Settings > Email Users) there is a Test Notification message. Does that work?

    Unfortunately not.

    Also on the Dashboard are a couple of notification boxes on the upper right hand side which tell you if any of the filters which affect WordPress email are active – what do they report?

    wp_mail_content_type: No
    wp_mail_charset: No
    wp_mail_from: No
    wp_mail_from_name: Yes

    The “Yes” comes from the following code in my functions.php, but when removed and “wp_mail_from_name” changes to “No” — It still doesn’t work.

    function change_wp_mail_from_name($from_name){
    return "CHOSEN_NAME_HERE";
    }
    add_filter("wp_mail_from_name", "change_wp_mail_from_name");

    Email Users utilizes wp_mail(), the same mechanism WordPress itself uses to send email. Do you receive email from your WordPress site (user registration, comment notification, etc.)?

    Yes. WordPress, BuddyPress and Contact Form 7 all send emails. Furthermore, I deactivated ALL plugins to see if they might be causing conflict. Still no dice.

    How many users are you trying to run your test with? I recommend starting with one and once that works, try two or three.

    I tried with 1 user and the Test Notification Message, neither worked.

    Also, expected and actual do match.

    Could the problem be with my host? Or does that fact that other Emails from my WordPress site are working eliminate this concern.

    Hopefully you can help me figure this one out! 🙂

    Thanks in advance!
    Dan

    • This topic was modified 9 years, 7 months ago by Daniel.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Mike Walsh

    (@mpwalsh8)

    The fact that other emails (registration, comments, etc.) work but the Email Users test notification does not is odd as standard WordPress functionality also uses wp_mail() to send email. Are you running on a Windows or Linux platform?

    On the Email Users settings page (Dashboard > Settings > Email Users) there is section toward the bottom of the page which is labeled “Email Users wp_mail() Check”. Do the “expected” and “actual” paths match?

    Thread Starter Daniel

    (@ddumondgmailcom)

    Hi Mike and thanks for your help! 🙂

    Are you running on a Windows or Linux platform?

    I’m with Dreamhost and they run on a Linux platform

    Do the “expected” and “actual” paths match?

    Yes they do: http://pasteboard.co/52HjNZaF2.png

    Thanks again!

    • This reply was modified 9 years, 7 months ago by Daniel.
    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    @ddumondgmailcom – Are you using DreamHost hosted email or Gmail for your email? I work for DH and I’ve seen this a lot where email sent via gmail doesn’t actually work :/

    Thread Starter Daniel

    (@ddumondgmailcom)

    Hey Mika! Thanks for Chiming in!

    I’m a big fan of DH — I especially look forward to their monthly newsletters loaded with sarcasm! 🙂

    I have my gmail address plugged in to my wordpress settings.

    What’s odd here is that WordPress, BuddyPress and Contact Form 7 all send emails no problem.

    It’s just this service in particular that’s causing an issue.

    I’m totally stumped!

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    It’s one of those things that mostly works. I just moved all my email over to gmail and had to set up https://wordpress.org/plugins/postman-smtp/ to make sure the emails were sent from everything. Some of my more rare plugins were having this issue, and I’m honestly not sure why.

    An easier setup might be https://wordpress.org/plugins/configure-smtp/ though. Install that and see if emails magically start working from that plugin?

    Plugin Author Mike Walsh

    (@mpwalsh8)

    It is entirely possible the way that Email Users constructs the mail headers is different than other plugins and for some reason the difference is enough to fail. Email Users has a debug mode where instead of sending email it dumps the headers to the Dashboard so you see the construct. While designed for Email Users, it would also dump the header for any email sent via wp_mail().

    I too have seen some odd email configurations and in a couple of cases had to recommend a SMTP plugin as a solution. The good thing about SMTP plugins is they also tend to get rid of the “why are all of my emails sent via Email Users tagged as spam” problem too.

    Thread Starter Daniel

    (@ddumondgmailcom)

    Thanks guys!! Postman did the trick!!! 🙂 Resolved!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Emails are not sending!’ is closed to new replies.