php - PHPMailer : how to set Content-Type to multipart/alternative -


i'm sending e-mails phpmailer messages comes content-type: text/html in header. how can change multipart/alternative?

it should $mail->

my config is:

$mail = new phpmailer();  $mail->setfrom('mail@mail.com', 'name'); $mail->ishtml(true);                                 $mail->charset = "iso-8859-1"; $mail->xmailer = ' '; 

phpmailer deals automatically. phpmailer doesn't allow building arbitrary mime structures, has whole bunch of presets covering common scenarios. example, build dual-format html & plain text message, this:

$mail->ishtml(); $mail->body = "<strong>html content</strong>"; $mail->altbody = "plain text content"; 

that produce message multipart/alternative mime structure.


Comments

Popular posts from this blog

qt - QML MouseArea onWheel event not working properly when inside QML Scrollview -

java - is not an enclosing class / new Intent Cannot Resolve Constructor -

python - Error importing VideoFileClip from moviepy : AttributeError: 'PermissionError' object has no attribute 'message' -