0
以下是我在wp_mail中的正文内容。图像未送入内嵌电子邮件正文
$message =
"<tr>
<td>
Attach File:
</td>
<td>
<img src='".plugin_dir_url(__FILE__)."uploadedfiles/".$ent['attachedfile']."'
width='200' height='200'>
</td>
</tr>";
$attachments[] =dirname(__FILE__)."/uploadedfiles/".$ent['attachedfile'];
$headers = 'From: Company <'.$from.'>' . "\r\n";
wp_mail($to,$subject,$message,$headers,$attachments);
问题是,在邮件中,我得到的图像作为附件,但没有显示在正文中。根据我的代码,它应该显示在那里。
如何在wp_email
body中添加图像?
相关https://开头计算器。 COM /问题/ 15646187 /显示直列图像附件与 - WP-邮件 –