简体   繁体   English

从ASP.NET从ME向ME发送SMTP邮件

[英]Sending SMTP Mail from ASP.NET From ME to ME

I am trying to add a user suggestions interface to my MVC4 application using system.net.mail . 我试图使用system.net.mail将用户建议界面添加到我的MVC4应用程序中。

I want to use my own email address to send mail from me to me with their suggestions. 我想使用自己的电子邮件地址将我的邮件和他们的建议发送给我。 This works fine on debug, but when I publish to a server, Google sends me an email saying I might be a victim blah blah... 这在调试时效果很好,但是当我发布到服务器时,Google给我发送了一封电子邮件,说我可能是受害者等等……

Is this just a Gmail thing, or is there a better way to send SMTP mail? 这仅仅是Gmail的事情,还是有一种发送SMTP邮件的更好的方法?

Gmail uses specific algorithms and other relative data to mark a email as spam. Gmail使用特定算法和其他相关数据将电子邮件标记为垃圾邮件。 In short your email has to have a valid and verified email sender address, authenticated request, etc. 简而言之,您的电子邮件必须具有有效且经过验证的电子邮件发件人地址,已验证的请求等。

You can check the details of GMail spam detection policy here - 您可以在此处查看GMail垃圾邮件检测策略的详细信息-

https://support.google.com/mail/answer/1366858?hl=en https://support.google.com/mail/answer/1366858?hl=zh_CN

we used to use the .net mailer, but now we use mandrill ( http://mandrill.com/ ) 我们曾经使用.net邮件程序,但现在我们使用mandrill( http://mandrill.com/

its free for up a certain volume, and certainly for development it serves it purpose without the headaches of the gmail think it's spam, phished emails and what not. 它免费提供一定数量的服务,当然也可以用于开发,因此可以达到目的,而无需gmail头痛,它认为它是垃圾邮件,恶意电子邮件,而并非如此。

here's a .net wrapper: https://github.com/shawnmclean/Mandrill-dotnet 这是一个.net包装器: https : //github.com/shawnmclean/Mandrill-dotnet

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM