Probleme with report email sending
-
Hello,
the plugin doesn’t send report emails. I read on the forums that you were supposed to solve the problem a few months ago. Please let me know.
Thank you.The page I need help with: [log in to see the link]
-
Hi @jpduval,
I have had no other reports that there is an issue with the email sending. There can be two causes: either the WP Cron, scheduled jobs, is not working on your site, or the mail is not sending.
To check the cron job, you can install the WP Crontrol plugin. In the Crontrol settings, on the events tab, you should see an event “burst_every_hour”.
To check the mail: can you try installing the following plugin to test the mail:
https://wordpress.org/plugins/wp-mail-logging/Then click the “send” button in statistics/settings/general, at the bottom.
Please note that the email will normally get sent once a week, or once a month, depending on your settings, so triggering the cron job right now will not do anything, as it is not Monday, or first of the month.
Hi, Thank you for your fast reply.
On the events tab, you should see an event “burst_every_hour”. OK it’s checked
Wp mail logging : I’ve clicked on the button “Send an e-mail report”. I haven’t got the report. And there is no message related to burst in this plug in report. This button is supposed to send me an instant report, isn’t it ?
TY
Yes, if you click the send button, it will send a report to the email addresses listed above it immediately.
Maybe we should try sending an e-mail from another plugin to check.
Can you install the WP Mail SMTP plugin, then go to WP Mail SMTP → Tools → Email Test?
And check if the email you send there arrives, or if there are any errors.
This will tell us if the default e-mail functionality on your server is working as expected.
Hi Rogier,
WP SMTP is already installed and works perfectly.
TY
JP
Test email from WP SMTP:
Congrats, test email was sent successfully!
Thank you for trying out WP Mail SMTP. We’re on a mission to make sure that your emails actually get delivered.
If you find this free plugin useful, please consider giving WP Mail SMTP Pro a try!
Strange… I just double checked with this same version, free 2.0.9, and got an e-mail report instantaneously in the mail.
Can you also try adding another e-mail address? And can you check if you have anything in the spam folder?
Can you try installing the WP Debugging plugin to see if there are any PHP errors occurring?
Hi , nothing in spams, even after adding an extra email. I have the message “Email report sent” and nothing in the 3 mail boxes.
Debug only displays that : Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the
bafgdomain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at theinitaction or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/xxxxxxx/domains/xxxxxxxx.fr/public_html/wp-includes/functions.php on line 6121All very strange.
– Confirmed working on a test environment
– No PHP errors
– Test email is sent.The only thing I can think of now is to add some logs directly in the code, if you’re ok with adding some logs to the plugin:
If you can access your site using FTP, or a file manager, in wp-content/burst-statistics/src/Admin/Mailer/class-mailer.php on line 187, please try changing
return wp_mail( $to, sanitize_text_field( $this->subject ), $body, [ 'Content-Type: text/html; charset=UTF-8' ] );to
$success = wp_mail( $to, sanitize_text_field( $this->subject ), $body, [ 'Content-Type: text/html; charset=UTF-8' ] ); error_log("Email sent successfully: " . ($success ? 'Yes' : 'No') . " to: " . $to); return $success;If you leave debugging on, then press the send button, you should get a log from this line, telling you if the wp_mail function sends a success or failure response, and if this line is reached at all.
Hi. I got this (in French, sorry) : Erreur de serveur dans do_action/send_email_report: Il y a eu une erreur critique sur ce site.En apprendre plus sur le débogage de WordPress.
No, sorry. I now have a success message but, still, no inbox report mail
JP
So you got this in the logs?
Email sent successfully: yes to email@yourdomain.comIf that is the case, is it possible that some spam filter on your server is filtering it out?
No sorry. Misunderstanding. I have a success message after clicking the send button. But nothing in the logs
Very very strange. I’ve checked on an other site, hosted at the same place, built with generate press as well, and it works
Do you have a from email address configured in wp smtp that will force all sent emails to have that as sender?
Otherwise you could try:
add_filter( 'wp_mail_from', function() { return 'your-trusted@email.com'; // same as set in WP Mail SMTP }); add_filter( 'wp_mail_from_name', function() { return 'Your Site Name'; });The answer is yes.
Where should I paste this code please ?If you already have a force email sent from, it probably doesn’t make a difference. But you can always try of course.
You can add it as an mu-plugin:https://burst-statistics.com/adding-filters-with-mu-plugins-quick-easy/
The topic ‘Probleme with report email sending’ is closed to new replies.