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 4 years, 1 month ago by
jocloud.
@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.
Thread Starter
dlx
(@deeluuxe)
Has anyone tested this with Mailster yet? I don´t have an account at Slack to test this.
@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.
Thread Starter
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…
Is the user not being added as Bcc?
Thread Starter
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.