wp_mail do not send attachments with PHPMailer
-
I have a custom made plugin that sends an email with some attachments using the function wp_mail. This plugin worked fine until I changed hosting.
After a lot of tests I found out that the problem is not the new hosting itself but the fact that I disabled the plugin WP Mail SMTP. In the old hosting it was “mandatory” to send the emails but in the new one the email are send even without it so it has been disabled to simplify things and remove a plugin.
I came to this conclusion after comparing the email sent from the old hosting with the emails sent with the new one, and the only thing that changed was the mailer: PHPMailer 6.8.1 instead of WPMailSMTP/Mailer/smtp 3.11.0
Am I doing something wrong? Do I need to add some specific headers to be able to send attachments without SMTP? Is this intended or it is a sort of bug?
Thank you
- The topic ‘wp_mail do not send attachments with PHPMailer’ is closed to new replies.