Support » Plugin: GDPR » E-Mails are not being send – 2.0.6

  • Resolved dlx

    (@deeluuxe)


    Hello!

    After noticing the emails send by GDPR plugin are blank I tried to find the problem. Read about the problems regarding plugins to send by SMTP. I´m using Mailster to send emails (for newsletters & to have a template for the design of standard WP emails).

    In Mailster there´s an option not to add the template to standard WP emails – I tried this but then I get the error “There was a problem with your request. Please try again later.”. I even disabled Mailster – same error then.

    GDPR seems to have a problem sending mails. Why?

Viewing 11 replies - 1 through 11 (of 11 total)
  • I have the same problem when I am using SMTP service to send emails.
    With PHP is working fine.

    Hello,

    I have exactly the same problem on 2 sites. It’s the first time I install this plugin (v2.0.6).

    Not error in file, only a popup with written: There was a problem with your request. Please try again later.

    Jo

    I have found the issue. The problem is when it tries to send the email (class GDPR_email). The plugin uses the function get_do_not_reply_address (file includes/class-gdpr-email.php) to generate a noreply address:

    private static function get_do_not_reply_address() {
    	  $sitename = strtolower( $_SERVER['SERVER_NAME'] );
        if ( substr( $sitename, 0, 4 ) === 'www.' ) {
    			$sitename = substr( $sitename, 4 );
        }
    	  return apply_filters( 'gdpr_do_not_reply_address', 'noreply@' . $sitename );
    	}

    The problem is that I run wordpress with docker and the SERVER_NAME, for me, is wordpress. So the generated email is noreply@wordpress. But because this address does not exist it raises an error.

    What I have done: I have added a filter to force the noreply address in my functions.php:

    function my_gdpr_do_not_reply_address() {
       return 'contact@mysite.fr';
    }
    
    add_filter( 'gdpr_do_not_reply_address', 'my_gdpr_do_not_reply_address', 99 );

    Now I can receive emails !!!

    Last think, my email plugin is Mail Bank.

    Jo

    • This reply was modified 1 year, 1 month ago by  jocloud.
    Plugin Author Fernando Claussen

    (@fclaussen)

    @amoore can you double check if the scenario that @jocloud described could be a similar thing to what users have been reporting with SMTP plugins?

    Also experiencing mail issues. I’ve tried to test the user tools but nothing is going through and no requests are being found with the GDPR tools on the WordPress admin area. I’ve tried turning off the STMP plugin I am using, but this has had no positive affect.

    Plugin Author Fernando Claussen

    (@fclaussen)

    I’ve created a possible fix for this that I want users with this problem to test out before I release it.

    Can you join me on Slack to help test this?
    https://join.slack.com/t/gdpr-wp/shared_invite/enQtMzcxOTc3NTAxMTM4LWFkNmEzZTU3ZWY3YTlhYmVlNjNkZmFhN2Y0ZjQ3OGMzN2U3ZmFhMmQ2NjM5ZDRiMjAwOTNlODNiODJmNzdjOWU

    dlx

    (@deeluuxe)

    Has anyone tested this with Mailster yet? I don´t have an account at Slack to test this.

    Plugin Author Fernando Claussen

    (@fclaussen)

    @deeluuxe

    I’m not sure if someone tested with Mailster, but the users that helped to test said it worked for them. The fix is coming on today’s update.
    Let me know then if this will work for you.

    dlx

    (@deeluuxe)

    Hi @fclaussen

    I´ve updated to version 2.1.0 and the emails are being send now.
    BUT: The emails are send to the wrong address – I get them on the e-mail-address that´s setup to be my sender´s address. I have two addresses:

    newsletter@… (sender)
    support@… (reply to)

    I get the emails to newsletter@…

    So unfortunately the users still don´t get any emails. Hopefully this is easy to fix…

    Plugin Author Fernando Claussen

    (@fclaussen)

    Is the user not being added as Bcc?

    dlx

    (@deeluuxe)

    Hi @fclaussen

    This was my fault: I left the code mentioned above in the functions.php. After removing it everything works fine. Also upgraded to 2.1.0.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘E-Mails are not being send – 2.0.6’ is closed to new replies.