[wp-hackers] wp_mail with string attachment

Michael D Adams mda at blogwaffe.com
Sat Oct 30 02:05:40 UTC 2010

On Fri, Oct 29, 2010 at 12:25 PM, Olivier <autremonde75 at gmail.com> wrote:
> Hello,
> I'd like to use the wp_mail() function with string attachment feature
> of PHPMailer class. This would allow me to pass on directly the
> content I want to attach without having to go through a temp file
> creation which can result into problems if the directory isn't
> writable.
> Is there a way to achieve this?

I don't know anything about the attachment feature you want to use,
but the phpmailer_init hook called from wp_mail() gives you complete
access to the $phpmailer object.


More information about the wp-hackers mailing list