我要从表单发送电子邮件:
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);
但收到的电子邮件不在邮箱中,而是在Junk中。你可以帮我吗?
答案 0 :(得分:0)
尝试更改主题和正文以使用户更友好。可能您的邮件提供商或邮件客户端“认为”它是垃圾邮件:)