wp-media / backwpup

BackWPup - WordPress Backup Plugin
https://backwpup.com
GNU General Public License v2.0
88 stars 35 forks source link

Use wp_mail for sending emails #43

Open noplanman opened 7 years ago

noplanman commented 7 years ago

It would be great if you would use wp_mail for all email deliveries, as I'm using a PGP encryption plugin that hooks into it to send encrypted emails. This works well for the backup logs, as that's the only place that uses wp_mail. I saw in your code that you're using Swift_Mailer for all other email deliveries.

Not sure it's possible for you to change everything around to not use Swift_Mailer and rely only on wp_mail, but if you could at least add a filter or hook to allow some modification of the email content before it is sent, I could make a mini plugin for myself to use that.

Or is there any other way to get BackWPUp to send encrypted emails?

Thanks!