PHP

SEND HTML UTF-8 EMAIL IN PHP

PHP UTF-8 EMAIL

MAIL TO + MAIL SUBJECT $mailTo = "john@doe.com"; $mailSubject = "Test";   MAIL MESSAGE $mailBody = "<html><body>"; $mailBody .= "<u>HTML 強い</u>"; $mailBody .= "</body></html>";   MAIL HEADER $mailHead = implode("\r\n", [   "MIME-Version: 1.0",   "Content-type: text/html; charset=utf-8"  ];   SEND MAIL mail ($mailTo, $mailSubject, $mailBody, $mailHead);

EXTRA - CSS IN EMAIL

Yes, we can inline CSS <p style="font-weight:bold">BLAH<>/p>.   But <style> tags will probably not work in many mail clients.