-4

我有一个从表格发送电子邮件:

                    System.Net.Mail.MailMessage message = new     System.Net.Mail.MailMessage();
                    message.To.Add(user.adresseEmail);
                    message.Subject = "This is the Subject line";
                    message.From = new System.Net.Mail.MailAddress("ad@live.com");
                    message.Body = "Login"+user.UserID+"\nPassword"+user.pwdUser;
                    //planet,topnet,ttnet
                    System.Net.Mail.SmtpClient smtp = new System.Net.Mail.SmtpClient("smtp.topnet.tn");
                    smtp.Send(message);

但是收到的电子邮件不是在盒子里,而是在垃圾箱里。你能帮我吗?

4

1 回答 1

0

尝试更改主题和正文以更加用户友好。可能您的邮件提供商或邮件客户端“认为”它是垃圾邮件:)

于 2013-04-23T09:04:06.133 回答