The attachment file name sent will be garbled, if not specified:
The Chinese in the file name sent is gone and becomes ".txt". Solution 1 Open class.phpmailer.php. Around line 1007, in the function AddAttachment, there is a sentence:
Solution 2 If you want to set the file name to Chinese, provide the Chinese name parameter (the second parameter) when calling AddAttachment. for example
Other problems: When sending Chinese emails, Chinese will appear Garbled code The garbled characters are probably generated when the email title is converted into several small ones =?utf-8?B?...?=, and the Chinese may be accidentally truncated. Modify line 1185:
and change it to:
Attached, PHPMailer email sending class V5.1 download address. |