通过Gmail SMTP使用C#发送的电子邮件被yahoo视为垃圾邮件 [英] Email Sent via Gmail SMTP using C# Being Treated as Spam by yahoo

查看:136
本文介绍了通过Gmail SMTP使用C#发送的电子邮件被yahoo视为垃圾邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我设计了一个用于通过gmail帐户发送邮件的应用程序.
我正在端口587上使用gmail smtp服务器,并且运行良好.在端口25上也很好用.但是发送的电子邮件被yahoo视为垃圾邮件.
是的,它用于发送批量邮件,但如果仅发送给一个收件人,则同样的问题仍然存在.
此外,如果我使用端口465,则会出现错误连接超时"

我尝试使用TcpCient做同样的事情.使用端口465,成功登录后以及发送传递消息的请求后,将存在相同的错误.在使用
的端口587和25上
sslStream.AuthenticateAsClient("smtp.gmail.com")

我收到消息由于意外的数据包格式,握手失败"

该怎么办?
基本上,我希望我的邮件不应该被视为垃圾邮件.

如果您能给出上面提到的事情发生的原因,那将真的更有帮助.

在此先感谢您.

i have designed an application for sending mails via a gmail account.
i am using the gmail smtp server at port 587 and it works well. at port 25 too it works well. but the email sent like this are being treated as spam by yahoo.
yes it is for sending bulk mails but the same problem persists event if it is sent to just one recipient.
further if i use port 465 the error appears "Connection timed out"

I tried experimenting by using TcpCient to do the same thing. with port 465 the same error exists after successful login and once the request to deliver message is sent. on ports 587 and 25 while using

sslStream.AuthenticateAsClient("smtp.gmail.com")

i get the message "handshake failed due to unexpected packet format"

What to do?
Basically i want that my mails should not be treated as spam.

It would be really more helpful if you could plz give reasons as to why the things happened as mentioned above.

Thanks in advance.

推荐答案

将您的代码恢复到实际发送邮件的位置,而Yahoo则将其视为垃圾邮件.

问题不在于您如何无法通过GMail发送邮件.问题出在您电子邮件的内容中.
Revert your code back to where it was actually sending the mail and Yahoo was considering it spam.

The problem is not in how you cannot to GMail to send your mail. The problem is in the content of your email.


这篇关于通过Gmail SMTP使用C#发送的电子邮件被yahoo视为垃圾邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆