Use wp_mail() function to send emails
-
Hi mailgun,
Thanks for the plugin I’m trying to use the wp_mail() function that was re-done in the mailgun plugin to send a multipart email.
The basic functionality is trigger wp_mail after a process is done.
I’m not really sure how should I use this function to accomplish the multipart. I would like to send a plain text and an html version of the same email but have had no luck whatsoever.
Initially, I tried to send the multipart email by using the default wp_mail funciton that comes packed with WordPress but this did not work unless i defined the phpmailer->AltBody property.
From what i see, the wp_mail() version from the mailgun plugin accepts an array for $body, one $body[‘text’] and another $body[‘html’] .
Any insights are much appreciated.
Thanks for your help and have a great day
- The topic ‘Use wp_mail() function to send emails’ is closed to new replies.