使用 swift 4.1.1 发送新闻通讯
我会使用 SwiftMail 4.1.1 创建一个 php 新闻通讯脚本,但我只在 http://swiftmailer.org/wikidocs/v3/sending/batch 对于 Swift 4.1.1,没有 wiki http://swiftmailer.org/wikidocs/v4/start
我该如何使用 Swift v.4? v.3 的相同代码不起作用。
多谢。
I would create a php newsletter script with SwiftMail 4.1.1 but I have only founded the wiki for Swift v.3 at http://swiftmailer.org/wikidocs/v3/sending/batch
For Swift 4.1.1 there isn't wiki http://swiftmailer.org/wikidocs/v4/start
How can I do with for Swift v.4? The same code for v.3 is not working.
Thanks a lot.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
好的,按照您的要求 -
如果您想批量发送电子邮件,
请按照最新文档:
http://swiftmailer.org/docs/sending.html
批量发送邮件¶
如果需要要向每个收件人发送单独的消息,以便只有他们自己的地址显示在“收件人:”字段中,请按照以下方法操作:
使用batchSend() - 我不确定该方法是否在您所需的版本中可用?
我希望它有帮助。
Ok as per your request -
If you want to send emails in a batch
As per latest documentation at
http://swiftmailer.org/docs/sending.html
Sending Emails in Batch¶
If you want to send a separate message to each recipient so that only their own address shows up in the To: field, follow the following recipe:
Using batchSend() - which I am not sure if is available in in your required version or not?
I hope it helps.
Swiftmailer 4 已被重写,类 Swift_RecipientList 在 Swiftmailer 4 中不可用。
请参阅文档 Swiftmailer 4 关于发送消息,有一个名为批量发送电子邮件的部分,也许就是这个你正在寻找。
Swiftmailer 4 has been rewritten, the class
Swift_RecipientList
is not available in Swiftmailer 4.See the documentation for Swiftmailer 4 about Sending Messages, there is a section named Sending Emails in Batch, maybe that's what you're looking for.