在phpmailer中的纯文本中的粗体文本

时间:2015-05-22 13:29:53

标签: php email phpmailer

通过phpmailer发送纯文本电子邮件时是否可以加粗一些文字?我不想使用HTML消息。下面是我的一段代码。

$spec_req = "";
if (strlen($nothing1) > 0) { $spec_req = $spec_req . "
$nothing1 
";}
if ( strlen($spec_req) > 0 ) { $spec_req = "

<b>SPECIAL REQUEST<b> : " . $spec_req;}

邮件发送:

$mail = new PHPMailer;
$mail->ContentType = 'text/plain';   
$mail->IsHTML(true);  
$mail->Subject = $subject;
$mail->Body = $spec_req;
$mail->send();

是否可以不使用Html文本?任何帮助.....

1 个答案:

答案 0 :(得分:1)

没有。纯文本是纯文本。

相关问题