首页 新闻 会员 周边 捐助

JMail 垃圾邮件

0
悬赏园豆:40 [已关闭问题]

我在用JMail开发一个邮件发送系统,但是我每次发送出去的邮件都被对方列为垃圾邮件。有的信箱就始终无法收到信件。求助大虾,如何能够避免邮件被列为垃圾邮件呢?

     jmail.MessageClass EmailMessage = new jmail.MessageClass();
                EmailMessage.From = "×××××××@126.com";
                EmailMessage.FromName = "××××";
                string[] to = this.tbto.Text.Split(';');
                string[] cc = this.tbcc.Text.Split(';');
                EmailMessage.Body = this.message.Text;               
                EmailMessage.Subject = "JMial程序设计";
                EmailMessage.Charset = "GB2312";
                if (this.tbAttachment.Text != "")
                {
                    EmailMessage.AddAttachment(this.tbAttachment.Text, false, "");
                }
                for (int i = 0; i < to.Length; i++)
                {
                    if (to[i] != null && to[i] != "")
                    {
                        EmailMessage.AddRecipient(to[i], "", "");
                    }
                }

                for (int i = 0; i < cc.Length; i++)
                {
                    if (cc[i] != null && cc[i] != "")
                    {
                        EmailMessage.AddRecipientCC(cc[i], "", "");
                    }
                }
                EmailMessage.Send("smtp.126.com", true);

陈进原的主页 陈进原 | 初学一级 | 园豆:10
提问于:2009-04-29 16:01
< >
分享
其他回答(1)
0

这个和你的邮件内容有关吧,和什么代码写的应该没关系!

Jerry Young | 园豆:435 (菜鸟二级) | 2009-04-29 17:42
0

兄弟,我也在做电子邮件客户端呢,在收邮件这里我一直没做好,望能交流下啊!!!!!!

 qq270035257

caixuan_110@163.com

求教问题 | 园豆:10 (初学一级) | 2009-04-30 12:27
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册