我有一个从表格发送电子邮件:
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);
但是收到的电子邮件不是在盒子里,而是在垃圾箱里。你能帮我吗?