简体   繁体   English

第三方与System.Net.Mail.SmtpClient

[英]Third-party vs System.Net.Mail.SmtpClient

We have to set up a notification system which needs to reliably deliver notification emails to clients. 我们必须建立一个通知系统,该系统需要可靠地向客户发送通知电子邮件。

In the past we have used .NET's System.Net.Mail.SmtpClient libraries to quickly hook up and send various low-priority emails. 在过去,我们使用.NET的System.Net.Mail.SmtpClient库来快速连接和发送各种低优先级的电子邮件。 Reliable and effective delivery wasn't critical. 可靠有效的交付并不重要。

Now we need to be able to delivery emails to clients - a different story. 现在我们需要能够向客户发送电子邮件 - 这是一个不同的故事。

Is it worth using some third-party service (like SendGrid ) or is the regular SmtpClient just fine? 是否值得使用一些第三方服务(如SendGrid )或常规SmtpClient就好了?

We don't need any analytic, marketing or subscription features. 我们不需要任何分析,营销或订阅功能。 Our volume requirements are not huge either - perhaps 10k per day. 我们的数量要求也不是很大 - 每天可能达到10k。 Only email sending capabilities are required. 只需要电子邮件发送功能。

Is it worth using some third-party service (like SendGrid) or is the regular SmtpClient just fine? 是否值得使用一些第三方服务(如SendGrid)或常规SmtpClient就好了?

Absolutely wrong question as you compare a sending API with a full-fledged email server. 将发送API与完整的电子邮件服务器进行比较时,绝对错误的问题。

You should have your local email sending relay either local on the machine (smtp service) or in your network and SmtpClient should go to that one. 您应该让本地电子邮件发送中继在本地机器上(smtp服务)或在您的网络中,SmtpClient应该转到那个。 This then relay the emails - either to the end users or to a distribution service (sendmail). 然后,它会将电子邮件转发给最终用户或分发服务(sendmail)。

I would NEVER use a setup where the web app has to directly send via a remote third party. 我永远不会使用Web应用程序必须通过远程第三方直接发送的设置。 This is bound for all kinds of problems. 这涉及各种问题。 As such, the question whether it is something like SendGrid or SmtpClient never would even be considered. 因此,甚至不会考虑是否像SendGrid或SmtpClient这样的问题。 It would never show up - it would be BOTH. 它永远不会出现 - 它将是两个。 Plus a local relay. 加上本地接力。 There are some nice third party email servers that are free as long as you have a LOW list of LOCAL Mailboxes - which means that they are perfect free email relays. 有一些不错的第三方电子邮件服务器是免费的,只要你有一个LOW列表的LOCAL邮箱 - 这意味着它们是完美的免费电子邮件中继。

Companies like SendGrid (for whom I work) focus on deliverability and making integration really simple for developers. 像SendGrid这样的公司(我为之工作)专注于可传递性,并使开发人员的集成变得非常简单。

You can certainly implement your own solution with success, provided you have the time. 如果您有时间,您当然可以成功实施自己的解决方案。 We have a free Deliverability guides that helps you do that, here are a couple: http://go.sendgrid.com/Deliverability-Guide-V2.html and here: http://sendgrid.com/blog/10-tips-to-keep-email-out-of-the-spam-folder 我们有一个免费的可交付性指南,可以帮助您实现这一目标,这里有几个: http//go.sendgrid.com/Deliverability-Guide-V2.html和这里: http//sendgrid.com/blog/10-tips以诚保电子邮件外的的垃圾邮件文件夹

We regularly post tips for deliverability on our blog at http://sendgrid.com/blog 我们会定期在http://sendgrid.com/blog上发布有关可传递性的提示

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 System.Net.Mail.SmtpClient 在 4.7 中过时了吗? - Is System.Net.Mail.SmtpClient obsolete in 4.7? 如何在Xamarin中使用System.Net.Mail.SmtpClient发送邮件 - How to send a mail in Xamarin using System.Net.Mail.SmtpClient 使用System.Net.Mail.SmtpClient发送的电子邮件的字体大小 - Font size for an email sent using System.Net.Mail.SmtpClient 使用System.Net.Mail.SmtpClient将电子邮件发送到通讯组列表 - Sending email to a distribution list using System.Net.Mail.SmtpClient 发送到 System.Net.Mail.SmtpClient 等文件夹 - Send to folder like System.Net.Mail.SmtpClient 如何为电子邮件(System.Net.Mail.SmtpClient)附件设置一个好名称 - How to set a nice name for an e-mail (System.Net.Mail.SmtpClient) attachment System.Net.Mail.SMTPClient如何执行其本地IP绑定 - How does System.Net.Mail.SMTPClient do its local IP binding 如何使用TLS和System.Net.Mail.SMTPCLient连接到googlemail.com? - How can I connect to googlemail.com using TLS and System.Net.Mail.SMTPCLient? 异步方法所需的响应时间与System.Net.Mail.SmtpClient的同步方法所需的时间差不多。 - Async method takes about same response time as sync method for System.Net.Mail.SmtpClient? 使用System.Net.Mail.SmtpClient,更改SMTP FROM电子邮件地址 - Using System.Net.Mail.SmtpClient, change the SMTP FROM email address
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM