I am using the Swift mailer module to send HTML emails. My actual body in hook_mail_alter()
is the following.
<p><em><strong>New Enquiry Appear </strong></em></p> <table border="1" cellpadding="1" cellspacing="1" height="77" width="467"> <tbody> <tr> <td style="width: 228px;">お名前</td> <td style="width: 258px;">@name</td> </tr> <tr> <td style="width: 228px;"> メールアドレス</td> <td style="width: 258px;">@email</td> </tr> <tr> <td style="width: 228px;"> 電話番号</td> <td style="width: 258px;">@mobile</td> </tr> <tr> <td style="width: 228px;">題名</td> <td style="width: 258px;">@title</td> </tr> <tr> <td style="width: 228px;">メッセージ本文</td> <td style="width: 258px;">@message</td> </tr> </tbody> </table> <p> </p>
The actual output is something like the following.
/*New Enquiry Appear */ お名前 amol メールアドレス testl@gmail.com 電話番号 99888776655 題名 challawar Html tag are not converted in Bold and Italic. メッセージ本文 sssssssssssssssss
I want my output to be well formatted as per my HTML markup. (Few HTML tags like <br />
, <strong>
, and <table>
are not working in the above example.)