Send both HTML and Plain Text emails using wp_mail in wordpress

I want to send both HTML and Plain Text emails using wp_mail() function in wordpress

I wasn’t able to find a way to do that. Does anyone know how to do that?

In PhpMailer for example there was an option to set both HTML and text with this line:

$mail->AltBody = $plain_text_format_mail;

Does anybody know if there is something similar for wp_mail that allow me to send both html as the main email and text as a fail safe option?

Thanks

Leave a Comment