ASPX发送邮件为垃圾邮件 [英] aspx send mail as spam

查看:229
本文介绍了ASPX发送邮件为垃圾邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

的app.config

app.config

 <system.net>
    <mailSettings>
      <smtp deliveryMethod="Network">
        <network defaultCredentials="false" host="smtp.gmail.com" password="aaa" port="587" userName="noreplay@aaa.si" />
      </smtp>
    </mailSettings>
  </system.net>

C#code:

C# code:

 MailMessage message = new MailMessage(email.From,
                                                      email.To,
                                                      email.Subject,
                                                      email.Body);

                message.IsBodyHtml = true;
                SmtpClient client = new SmtpClient();
                client.UseDefaultCredentials = false;
                client.EnableSsl = true;
                client.Send(message);

和邮件发送垃圾邮件一样。问题必须在凭据,但我不知道在哪里。谁能告诉我,我必须做的邮件不会被发送为垃圾邮件?

And mail is sent like spam. problem must be in Credentials but i do not know where. Can someone tell me what i must do that mail will not be send as spam?

THX

推荐答案

请参阅本的链接这个。不解决你的问题在​​技术方面的帮助,但如果你真的需要某种形式的促销优惠从您自己的code发送到一个庞大的客户群,送它不是一个最佳的选择。

See this link and this. Not solving your problem in terms of technical help but if you really need to send some kind of promotional offer to a large customer base, sending it from your own code is not a best option.

您更好地得到大规模电子邮件服务提供商一个包,因为有相当多的规则(raymund的的帖子提到,我说的一些规则)大人物(谷歌,雅虎,Hotmail等)申请,这将导致你的电子邮件进入垃圾邮件文件夹。

You better get a package from mass email service providers because there are quite a lot of rules (Raymund's post has mentioned some rules that I am talking about) that big shots (google, yahoo, hotmail) apply that will cause your emails to go into spam folder.

这篇关于ASPX发送邮件为垃圾邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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