amazon ses PHP sdk を使用してメールを送信しようとしています。
次のコードを取得しました。正常に動作
$body = "
<html>
<head>
<title>HTML email</title>
</head>
<body>
<p>This email contains HTML Tags!</p>
<table>
<tr>
<th>Firstname</th>
<th>Lastname</th>
</tr>
<tr>
<td>John</td>
<td>Doe</td>
</tr>
</table>
</body>
</html>
";
require_once('ses.php');
$ses = new SimpleEmailService('KEY', 'KEY');
$m = new SimpleEmailServiceMessage();
$m->addTo('mail@gmail.com');
$m->setFrom('Test Support <test@test.com>');
$m->setSubject('Hello, world!');
$m->setMessageFromString($body);
print_r($ses->sendEmail($m));
このコードはうまく機能していますが、このスクリプトを使用して HTML 形式のメールを送信する方法がわかりません。
こんな身体
$body='<div ><b>Name</b></div>';
誰でも私を助けてください 事前に感謝します