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
Post a Comment