i have sent mail to yahoomail. In project it gives mail sent successfully. but i didn't get mail in yahoomail inbox. Do u have any idea about this problem.. by sathya
hi.. I had the problem initially, after configuring the problem was solved, but then after sending the mail, it took much time to receive the mail that too in spam, then i tried using 'NetworkCredential class' now i get the mail right in the inbox in time..
and there is no need of configuring iis here is the code
-------
NetworkCredential loginInfo = new NetworkCredential(gMailAccount,password);
MailMessage msg = new MailMessage();
msg.From = new MailAddress(gMailAccount);
msg.To.Add(new MailAddress(to));
msg.Subject = subject;
msg.Body = message;
msg.IsBodyHtml = true;
SmtpClient client = new SmtpClient("smtp.gmail.com");
client.EnableSsl = true;
client.UseDefaultCredentials = false;
client.Credentials = loginInfo;
client.Send(msg);
regarding the logfile, the headache is gone, but I got a nosebleed reading the cryptic messages in the log file. where can we find the meaning to these messages? anyway, what worked for is the relay as adivised from the previous messages: IIS 6 Manager > SMTP
Server Virtual Server > Properties > Access > Relay tab. I just select the option "All except the list below."
sathiyarayan
4 Posts
Re: Mailbox unavailable. The server response was: 5.7.1 Unable to relay for (email address)
Apr 24, 2009 02:04 PM|LINK
Sathyarayan Emayavaramban
tomkmvp
7657 Posts
MVP
Moderator
Re: Mailbox unavailable. The server response was: 5.7.1 Unable to relay for (email address)
Apr 24, 2009 02:40 PM|LINK
My guess is yahoo caught it in its spam filters.
http://mvp.support.microsoft.com/
charyforIIS
1 Post
Re: Mailbox unavailable. The server response was: 5.7.1 Unable to relay for (email address)
Nov 25, 2009 11:12 AM|LINK
thanks it is working for me
sathiyarayan
4 Posts
Re: Mailbox unavailable. The server response was: 5.7.1 Unable to relay for (email address)
Nov 28, 2009 02:35 PM|LINK
-------
NetworkCredential loginInfo = new NetworkCredential(gMailAccount,password);
MailMessage msg = new MailMessage();
msg.From = new MailAddress(gMailAccount);
msg.To.Add(new MailAddress(to));
msg.Subject = subject;
msg.Body = message;
msg.IsBodyHtml = true;
SmtpClient client = new SmtpClient("smtp.gmail.com");
client.EnableSsl = true;
client.UseDefaultCredentials = false;
client.Credentials = loginInfo;
client.Send(msg);
Sathyarayan Emayavaramban
paul6151
1 Post
Re: Mailbox unavailable. The server response was: 5.7.1 Unable to relay for (email address)
Sep 29, 2010 02:44 AM|LINK