Sunday, September 20, 2009

How to send mail with binary word in mail subject using PHP


Please refer RFC 2047 for detail format.

For simple, if your mail subject contains binary, and I use UTF-8 as a example:
$subject = '=?UTF-8?B?'.base64_encode($subject).'?=';

No comments:

Post a Comment