2012-09-29 3 views
1

asp.net에서 이메일을 보낼 수 있지만 이메일의 나머지 부분은 오류를 works..following 것은 나타 해달라고 :그것은 특정 이메일 주소에 대해 잘 작동

Server Error in '/RealTimeArsenicDataVisualizer' Application. 
Mailbox name not allowed. The server response was: From address not verified - see http://help.yahoo.com/l/us/yahoo/mail/original/manage/sendfrom-07.html 

내 코드 :

System.Net.Mail.SmtpClient client = new System.Net.Mail.SmtpClient("smtp.mail.yahoo.co.in", 587); 

     client.UseDefaultCredentials = false; 
    client.Credentials = new System.Net.NetworkCredential(emailid, password); 

      client.Port = 587; 

      client.Host = "smtp.mail.yahoo.co.in"; 

      client.EnableSsl = false; 

      object userstate = msg; 

      client.Send(msg); 

답변

0

코드를 아래 코드로 변경하십시오.

client.Port = 465; 

client.Host = " smtp.mail.yahoo.com"; 
client.EnableSsl = true; 
관련 문제