sendEmail乱码

sendEmail乱码解决

1.测试一下中文发送,有的已经支持iso-8859-1编码,但大部分邮箱还是不支持,建议修改

[root@localhost objects]# /usr/local/bin/sendEmail -f [email protected] -t [email protected] -u "test" -m "世界你好!"
Jul 12 11:18:24 localhost sendEmail[15873]: Email was sent successfully!

2.修改编码为utf-8

# vi /usr/local/bin/sendEmail

把"message-charset" 修改为 utf-8

######以上省略N行######
    "message-format"       => 'normal',                            ## If "raw" is specified the message is sent unmodified
    "message-charset"      => 'iso-8859-1',                        ## Message character-set
    "message-content-type" => 'auto',                              ## auto, text, html or an actual string to put into the content-type header.
######以下省略N行######



你可能感兴趣的:(sendEmail,ttf-8)