Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wp-mail-logging
domain 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 the init
action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.)
This is giving a warning in a bunch of plugins, wp_mail_logging being one of them. Please patch and update as soon as possible
I am getting the following warning, after updating to v1.13.1:
PHP E_WARNING (#2): Undefined array key 0
wp-content/plugins/wp-mail-logging/src/WPML_Plugin.php (587)
The offending code is trying to read from an array, but is incorrectly using a numeric index.
The array’s keys are set to values such as From and CC.
var_dump($mail_headers) ...
array (
'From' => 'From: [email protected]',
'Cc' => 'Cc: ',
'Bcc' => 'Bcc: [email protected]',
'Content-type' => 'Content-type: text/html; charset=UTF-8',
)
I think the fix should be as follows:
// BEFORE:
for ( $ctr = 0; $ctr < count( $mail_headers ); $ctr++ ) {
$header_arr = explode( ":", $mail_headers[ $ctr ] );
// If Content-Type header is already set, don't add it again.
if ( ! empty( $header_arr[0] ) && strtolower( $header_arr[0] ) === 'content-type' ) {
$should_force_add_content_type = false;
}
}
// AFTER:
foreach ( $mail_headers as $mail_header ) {
$header_arr = explode( ":", $mail_header );
// If Content-Type header is already set, don't add it again.
if ( ! empty( $header_arr[0] ) && strtolower( $header_arr[0] ) === 'content-type' ) {
$should_force_add_content_type = false;
break;
}
}
]]>
There seems to be a filter option that can be used through a function, but it seems that the email also fails to send. Is there a way to only filter the logging of the email, but still send the email?
Is this a defect? Is the email still supposed to send?
Also see https://gitmemories.com/awesomemotive/wp-mail-logging/issues/190
]]>Hi,
First of all, thank you for the continuous support and maintenance of the plugin! ??
I recently updated the plugin to version 1.13.0, and I started experiencing an issue where line breaks are not being applied correctly in the sent emails.
Issue Details:
AAA
BBB
AAABBB
I hope this description helps in identifying the issue. Let me know if there’s anything else you need from my side!
Thank you!
Hello, anyone know where the storage of email logs data is located?
I am assuming it’s not in the plugin folder itself so would be in the database somewhere?
Thanks
]]>We are using v1.12.0 of your plugin and attempted to resend an email that had failed. The original email was in HTML format so that is what we expected the resent version to be in but it was sent as plain text so all we saw was the raw HTML code. Some emails are correctly resent as HTML.
I have added the following workaround to wp-mail-logging\src\WPML_Email_Dispatcher.php to force HTML:
public function dispatch( $to, $subject, $message, $headers = '', $attachments = array() )
{
array_push($headers, 'Content-Type: text/html');
array_push($headers, 'charset=UTF-8');
wp_mail( $to, $subject, $message, $headers, $attachments);
}
]]>
Hi, I would like to know why some sent emails are not shown in WP Mail Logging even though I know they are sent and they are in the WP Mail SMTP log.
For example, this WP Mail Logging screenshot does not show 2 emails from a sale in the online store (one to me and one to the customer) that do appear in WP Mail SMTP.
WP Mail Logging screenshot
https://i.imgur.com/JF2g7xH.jpeg
WP Mail SMTP screenshot
https://i.imgur.com/ebW4vip.jpeg
I would like to fix this so I can access the mails sent to customers and check that the layout and content of the mails are correct. With WP Mail SMTP I can only access the log, not the content of the mail.
The emails are sent from Woocommerce and YayMail.
WP Mail Logging version is 1.12.0, WP Mail SMTP version is 3.11.0.
Thanks!!
]]>We are experiencing an issue where some, but not all, of our contact form submissions aren’t being recorded by WP Mail Logging in either the Successful or Failed sections.
This issue appeared after we implemented WP Mail SMTP lite with Google APIs SMTP. These same submissions are do not seem to be being sent out at all and I have also reached out in the WP Mail SMTP forums.
We use Constant Contacts form plugin for specific reasons.
Trying to figure out why these submissions aren’t being logged even as Failed submissions.
Thank you.
]]>Hi team,
This is impossible as I have received several emails from our system in August.
Why does the log stop in July?
Thanks!
]]>any chance of adding the ability to export log on WP Mail Logging?
If premium, ok.
Currently using: Version 1.12.0 | By WP Mail Logging Team
]]>Whenever I create a staging copy (Im with siteground hosting) my DB size explodes over 1000MB, due to your plugin: viw_wpml_mails
Live site is fine and usage/storage is normal. Why does this happen?
]]>Hi!
The plugin seems to be working for all other emails, but we emails sent from the Event Tickets plugin are not being logged. Which – unfortunately – was the main reason we installed the logging plugin. Does anyone know where I might trying figuring out why those are not being logged?
Thank you!
Darius
Hello,
So I have WP Mail Logging working with WP Mail SMTP. We are encountering an issue where some emails seem to be sent with no problem nor error message on the plugin but when checking the mail inbox, they have not being received.
So our clients fill a form and it is sent to us. On WP Mail Logging it appears that it has been sent without problem, but when we check our inbox we haven’t received said form.
We don’t know if someone else has encountered this problem, so we created this new topic.
Best regards.
]]>any idea pls?
[The used table type doesn’t support FULLTEXT indexes]CREATE TABLE IF NOT EXISTS
wp_wpml_mails
( mail_id
INT NOT NULL AUTO_INCREMENT, timestamp
TIMESTAMP NOT NULL, host
VARCHAR(200) NOT NULL DEFAULT '0', receiver
VARCHAR(200) NOT NULL DEFAULT '0', subject
VARCHAR(200) NOT NULL DEFAULT '0', message
TEXT NULL, headers
TEXT NULL, attachments
VARCHAR(800) NOT NULL DEFAULT '0', error
VARCHAR(400) NULL DEFAULT '', plugin_version
VARCHAR(200) NOT NULL DEFAULT '0', PRIMARY KEY (mail_id
), FULLTEXT INDEX idx_message
(message
) ) ENGINE='InnoDB' COLLATE='utf8mb4_unicode_ci';
Hi support team,
Thank you for your great plugin which helps a lot to monitor the e-mail distribution.
Unfortunately we encounter the issue that if an e-mail contains more that 9 attachments the e-mails are not logged in your plugin. At first we thought the e-mails are not sent either. But the customers confirmed that they receive the e-mails with more than 9 attachments correctly. This is good but we would like to see any e-mail in WPMail Logging plugin to be able to monitor each single case!
Could you please check this issue?
We use the current plugin version 1.12.0, e-mails are sent in standard text/htmll format without any special settings.
Thank you for your support and best regards
Christian
]]>Hello, I’m PTE for this (great) plugin for the Italian language.
I’ve just finished translating it, but I’ve noticed that two strings can’t be translated.
Namely:
both located in the Bulk Actions submenu. Could you please make them translatable?
Kind regards.
]]>Hi there,
I’ve encountered an issue where mails are sent out fine (using SMTP) and I also receive them. However, they are not displayed in the email log. While trying to figure out the issue I noticed that the mail (an order confirmation) can get quite long (~2000 lines of custom HTML/~145.000 characters/~150 KB when saved as .txt). Leaving out the details of the order in the mail (massively reducing the mail body) resulted in the mail being logged correctly.
My question now is: Can a large mail body really be the reason for a mail to not be logged? And if it is, is this a limitation of the plugin or can I do something to enable larger emails to be logged as well? (some kind of setting, filter, or database adjustment maybe?) Or alternatively, can I somehow manually save an email to the log leaving out the big mail body (of course not wanting to send the email twice)?
Plugin version is 1.12.0
Hello,
Related to GDPR, I have to exclude some emails from being stored in database. Is there a way to exclude emails depending on the subject for example?
Thanks!
WP Mail Logging version:?1.12.0
]]>I have WP Mail Logging enabled on this site for years – a very useful tool. I recently developed another Gravity Form for the client which is now live. During testing, the 4 email notifications triggered on each submisssion were sent, but I’ve noticed that 2 of them don’t appear in mail logging on 3 recent form submissions, however I search for them. So I installed WP Mail SMTP plugin using Brevo service. I’ve just spoken with the client who now clarified that she HAD actually received the 3 email notifications that weren’t showing in your mail log!? I then just resent the 3 admin emails, via Gravity Form entries, with WP Mail Logging & WP Mail SMTP active. She got all 3 again, but they are NOT logged again in WP Mail Logging screen?
Does WP Mail SMTP interfere with WP Mail Logging and can I keep both plugins active. Any idea why your plugin may not be recording these email notifications that ARE being sent?
Hi,
I have just changed my SMTP settings. When I try to “Resend” certain emails like the wp form notifications or duplicator plugin notifications, it sends as Raw plain text and I can see the HTML coding rather than the actual email.
It seems that when the email sends from the actual plugin, it’s fine.
Why is this happening and is there a fix?
Thank
]]>Hello
We are sending many automatic emails with Amelia Booking plugin but when we look at email log it is empty.
How can we solve it?
Regards
Forgive me, I am new to WordPress and yes, I did see the WARNING that all previous logs would be deleted, but with lack of sleep I accidentally pressed YES to upgrade the database and I did, and all previous logs are now gone.
Is there any way to recover the former logs?
WP Mail Log Version 1.12.0
]]>My client is using a form plug-in (Formidable Forms) and was hoping to set up SMTP to have the form data sent via email to her inbox. We were not able to set up the SMTP plug-in without a great deal of difficulty, so after major troubleshooting, we decided to just collect the data from the WP Mail Logging email log. However, we need to know if there is a way to collect that data, perhaps in a spreadsheet, rather than have to view each entry and copy and paste the information. Oddly enough, even if we had set up the SMTP we would still have to copy the data from the individual emails. Hoping there is a way to generate a more usable output of the data in the email log.
]]>I was testing a new WP Mail SMTP install for a client and after the test mail was working I performed a password reset to see if the mail was send in a real world scenario. Seeing the mail in WP Mail Logging I realized the reset password link was there readable and useable in the log, and also in the database. Does this pose a security issue?
]]>We are using wp-mail-logging for a site of ours and overall it works well. However, we had two instances where someone submitted a form and the email was delivered successfully but was not logged. They were a week apart (11/21/2023 and 11/28/2023) but from the same domain. Not only were they not logged in wp-mail-logging, but they were not in /var/log/maillog either. Where are wp-mail-logging logs actually stored on a Linux server? I’m hoping to find them and see if there’s any more information I can get from them, but they are not viewable in wp-admin.
Please let me know if you need any additional information.
]]>“General Settings
Change your WP Mail Logging settings.
Can See Submission data”
No user roles in list. Screen shot shows initial 13 items available, list has over 50 items, none are user roles.
I inherited this site and did not make any custom changes in code.
Thank you for assistance.
Email Logging dont work if i send mail with wp_mail and mutlipart content. Any suggestion for this case ?
//code sample
foreach ($attachments as $attachment) {
$file_content = file_get_contents($attachment);
$file_encoded = base64_encode($file_content);
$body .= '--' . $boundary . "\r\n";
$body .= 'Content-Type: application/pdf; name="' . basename($attachment) . '"' . "\r\n";
$body .= 'Content-Transfer-Encoding: base64' . "\r\n";
$body .= 'Content-Disposition: attachment; filename="' . basename($attachment) . '"' . "\r\n\r\n";
$body .= chunk_split($file_encoded) . "\r\n\r\n";
}
$body .= '--' . $boundary . '--';
wp_mail($to, $subject, $body, $headers, $file_paths);
]]>
Just installed and activated this plugin. Get this message when I try to go to settings: Sorry, you are not allowed to access this page.
Also the plugin is not showing in the dashboard.
]]>Hello!
I’d like to log only messages by forms so the logging of administrative outgoing mails so far i need to delete manualy.
May there is a change, to disable by given mailadress?
Thank You for any advice!
]]>Please honour the date format setting on the WordPress settings page when displaying the log entries.
Thank you for the plugin and listening.