提问人:Eli 提问时间:11/26/2012 最后编辑:Eli 更新时间:11/17/2014 访问量:1460
更改 SwiftMailer 生成的电子邮件中的多部分边界?
Change the Multipart Boundary in a SwiftMailer generated email?
问:
感谢您的阅读!
我想更改 SwiftMailer 生成的消息中的默认多部分边界字符串。
SwiftMailer 似乎会自动生成字符串,并包含字符串“swift_v4...”,如下所示:
--_=_swift_v4_135388916050b2b5889e516_=_
...Text Message Part...
--_=_swift_v4_135388916050b2b5889e516_=_
...HTML Message Part...
--_=_swift_v4_135388916050b2b5889e516_=_
我在文档中没有看到任何内容,但在我深入研究代码之前,有没有人知道通过 SwiftMailer 界面更改它的方法?
答:
3赞
Ja͢ck
11/26/2012
#1
从源代码来看,这可以通过简单的 .Swift_Message::setBoundary()
0赞
manish dhruw
12/8/2012
#2
$message = Swift_Message::newInstance() # Create the message
->setBoundary('Your boundary')
# more code
下一个:声明大型数组时出现堆栈溢出异常
评论