我们正在建立一个以 sendgrid 为核心的批量邮件系统。
我们自己管理列表,sendgrid 只是我们的传输工具,并使用代码点火器来构建系统。
我们想知道您会建议我们使用什么,sendgrid 作为 smtp 服务器,还是使用它的curl API。
我们每天向 x00,000 人发送电子邮件,这些电子邮件的内容都相同。
我们找到了 SendGrid 的 code igniter 集成文档< /a> 其中只有 smtp 示例,所以可能这就是要走的路吗?
问题的另一部分是,如果我们使用 SMTP api,代码点火器 bcc_batch_mode 如何工作?
We are setting up a bulk mailing system using sendgrid as our core.
We are managing the lists ourselves and sendgrid is simply our transport and are using code igniter to build the system.
We are wondering what you would recommend we use, sendgrid as an smtp server, or use it's curl API.
We are sending emails out to x00,000 people every day, the emails all have the same content.
We have found SendGrid's integration documentation for code igniter which only has smtp examples, so possibly that is the way to go?
The other part of the question is, if we were to go with the SMTP api, how does code igniters bcc_batch_mode work?
发布评论
评论(3)
我目前在 SendGrid 工作。我们的 Web API 实际上比 SMTP 运行得更快,因为您只需要向我们发出一个 cURL 请求即可发送消息,而使用 SMTP 则需要大量来回的 TCP 连接、HELO 等操作。
我们最近发布了一个新的 PHP 库,您可以在我们的 github 帐户上找到它: http://github.com/sendgrid/< /a>
如果您有任何疑问,请随时与我们联系。
I currently work at SendGrid. Our web API actually works faster than SMTP, as you only need to make a single cURL request to us to send a message, whereas with SMTP there's a lot of back-and-forth TCP chatter for connection, HELO, and such.
We recently published a new PHP library, you can find it on our github account: http://github.com/sendgrid/
Don't hesitate to contact us if you have questions.
阅读文档 http://sendgrid.com/documentation/map/version/v2#api
它们之间几乎没有什么可供选择的。无论哪种方式,所有功能都可用。对于 PHP,我建议使用 smtp 服务器及其 SMTP API,以利用现有的库来正确格式化、mime 编码和发送电子邮件。值得注意的是,示例 PHP 代码仅针对 SMTP API 给出。
编辑问题的补充
sendgrid 文档说要在自定义邮件标头中使用 API 对多个收件人进行编码 - X-SMTPAPI - 不使用 CC 和 BCC。请参阅 http://sendgrid.com/documentation/display/api/SMTPDevelopersGuide
http://sendgrid.com/documentation/display/api/SMTP 针对多个问题的最佳实践部分常规邮件标头中的收件人。
Reading the documentation at http://sendgrid.com/documentation/map/version/v2#api
there is little to choose between them. All functionality is available either way. For PHP, I recommend smtp server with their SMTP API to take advantage of existing libraries that correctly format, mime encode, and send the email. Notably, example PHP code is given only for the SMTP API.
Edited for additions to question
The sendgrid documentation say to encode multiple recipients with their API in a custom mail header -- X-SMTPAPI --not using CC and BCC. See http://sendgrid.com/documentation/display/api/SMTPDevelopersGuide
http://sendgrid.com/documentation/display/api/SMTP best practices section for issue with multiple recipients in the regular mail headers.
好的,为了给大家提供参考,我将粘贴我的支持聊天内容。请注意,此聊天涵盖了广泛的内容,因此将其存储在这里可能会很有用
:使用代码点火器发送给多个收件人?
您好,我是一名使用 code igniter 的 php 开发人员,我们使用 sendgrid 作为我们的电子邮件发送平台,
Ok, so simply as a reference for anyone I am going to paste my support chat. Note that this chat covers a wide range of things so could be useful to have it stored here
me: Sending to multiple recipients using code igniter?
Hi there, I am a php developer using code igniter, we are using sendgrid as our email sending platform,