With the SocketLabs plugin activated, when sending emails through the Better Notifications for WP plugin, HTML is not being rendered in the body of the emails. For example, the body of the emails appear like:
<p><strong>Bold text appears here.</strong></p>
I previously used the WP Mail SMTP plugin to connect to my SocketLabs account, and the Better Notifications for WP emails rendered correctly.
Are you able to fix this issue within the SocketLabs plugin?
]]>Is there any plan to get this plugin updated for compatibility with the latest version of WordPress?
]]>Hi, the plugin not working on all my sites since some last updates
]]>Hi guys,
My name is Nikita and I’m the lead developer in the Ultimate Member team.
Our customer that also uses your plugins has encountered a problem with the formatting of emails.
Emails containing HTML looked as raw HTML without Content-Type: text/html header. We use WP native wp_mail()
function and pass the Content-Type:text/html
header to it.
https://github.com/ultimatemember/ultimatemember/blob/master/includes/core/class-mail.php#L448
It works fine with WP native wp_mail()
.
But in the case of your Mailer class and rewritten wp_mail()
, it seems that this line has a higher priority, and Content-Type:text/html
in the headers argument is ignored.
This was confirmed by the fact that the workaround code works as it should:
function um_custom_wp_mail_content_type( $content_type ) {
if ( UM()->options()->get( 'email_html' ) ) {
$content_type = 'text/html';
}
return $content_type;
}
function um_custom_before_email_notification_sending_set_data() {
add_filter( 'wp_mail_content_type', 'um_custom_wp_mail_content_type', 10, 1 );
}
add_action( 'um_before_email_notification_sending', 'um_custom_before_email_notification_sending_set_data' );
function um_custom_remove_before_email_notification_sending_set_data() {
remove_filter( 'wp_mail_content_type', 'um_custom_wp_mail_content_type', 10 );
}
add_action( 'um_after_email_notification_sending', 'um_custom_remove_before_email_notification_sending_set_data' );
Please add a fix that handles headers properly and uses the correct content-type from them.
Best Regards!
]]>Hey guys…any updates in the pipeline to make this work in a multisite environment. Not much extra work…as a result of not having this ability people are forced to use a 3rd party smtp plugin which then significantly defeats the purpose of the the api sending…anyways…not much extra work to achieve in your plugin…please consider.
]]>Hi,
I found that using this plugin with API everything is working fine until you have to send something to more than one recipient at once, like CC in email.
For example, all contact forms can send a notification to multiple recipients. You are just putting [email protected], [email protected], etc. And in this case, SocketLabs plugin is not sending anything, zero messages out.
However, if I use SocketLabs SMTP connection with SMTP plugin, I can send a notification to multiple recipients at once without any problem.
]]>Hello, is there any way to change the default sending address?
From wordpress@domain to maybe website@ or info@ etc?