WPManageNinja/fluent-smtp

phpmailer AddStringAttachment doesn't work

mskapusuz opened this issue · 0 comments

Hello there,

We encounter an issue with FluentSMTP, our plugin attaches an attachment to the mails with $phpmailer->AddStringAttachment however this logic doesn't work with FluentSMTP, so the wp_mail throws an exception due to file path issue.

When I suppress wp_mail override on

if (!function_exists('wp_mail')) :
function wp_mail($to, $subject, $message, $headers = '', $attachments = array())
{
return fluentMailSend($to, $subject, $message, $headers, $attachments);
}
it works.

Could you please check the issue?
Thanks