所以我通过utf8_encode函数为邮件添加文本并再次尝试.现在它反过来了.它在我的电子邮件客户端显示得很好,但在我的同事中搞砸了.
The character set of the message (and it’s MIME parts) is set with the
setCharset() method. You can also change the global default of UTF-8
by working with the Swift_Preferences class.Swift Mailer will default to the UTF-8 character set unless otherwise
overridden. UTF-8 will work in most instances since it includes all of
the standard US keyboard characters in addition to most international
characters.It is absolutely vital however that you kNow what character set your
message (or it’s MIME parts) are written in otherwise your message may
be received completely garbled.
http://swiftmailer.org/docs/messages.html#setting-the-character-set
原文地址:https://www.jb51.cc/php/134307.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。