Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / March 2008

Tip: Looking for answers? Try searching our database.

Mailbox Not Found System.net.mail

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
pedro@code4cerveja.com - 03 Mar 2008 14:19 GMT
i cannot send messages from my email using asp.net to other emails
outside my domain

i have this error Mailbox not Found :no such user

anyone ?

Pedro
thanks

----> Code

public static void SendTeste(out string email,out string recip,out
string xi)
{

SiteSettings s = SiteSettings.GetSharedSettings();
xi = "teste";
email = s.SiteEmailFromField;
recip = GetAdminRecipients();

StringBuilder messageBody = new StringBuilder();

messageBody.AppendFormat("Um novo anuncio foi colocado no site
'{0}':", s.SiteName);
messageBody.AppendLine();

try
{
//MailMessage m = new MailMessage(s.SiteEmailFromField,
GetAdminRecipients());
MailMessage m = new MailMessage(s.SiteEmailFromField,
"pedro@code4cerveja.com,dinisnet@hotmail.com,aplp@sapo.pt");
m.Subject ="Novo anuncio colocado:";
m.Body = messageBody.ToString();
SmtpClient client = new SmtpClient();
client.Send(m);
}
catch (Exception x) { //xi = x.Message;

Exception ex2 = x;
//string xi = string.Empty;
while (ex2 != null)
{
xi += ex2.ToString();
ex2 = ex2.InnerException;
}

}

}

------>>>errors

testeSystem.Net.Mail.SmtpFailedRecipientsException: Impossível enviar
para um destinatário. --->
System.Net.Mail.SmtpFailedRecipientException: Caixa de correio não
disponível. A resposta do servidor foi: No such user here --- Fim do
rastreio da pilha de excepção interna --- em
System.Net.Mail.SmtpClient.Send(MailMessage message) em
Logica.Personal.Manutencao.SendTeste(String& email, String& recip,
String& xi) em
f:quartos.code4cerveja.comApp_CodeLogicaManutencao.cs:line
48System.Net.Mail.SmtpFailedRecipientException: Caixa de correio não
disponível. A resposta do servidor foi: No such user here

Caixa de correio não disponível  means Mailbox Not Found
Alexey Smirnov - 03 Mar 2008 20:29 GMT
On Mar 3, 3:19 pm, pe...@code4cerveja.com wrote:
> i cannot send messages from my email using asp.net to other emails
> outside my domain
[quoted text clipped - 62 lines]
>
> Caixa de correio não disponível  means Mailbox Not Found

First of all, I think you would need to separate each recipient with a
semicolon. Then check if server requires credentials   and include
them if needed.
sloan - 03 Mar 2008 21:19 GMT
Go here
http://sholliday.spaces.live.com/Blog/cns!A68482B9628A842A!138.entry

download the code.

This will give you a pretty good baseline to test against.

And work on the ";" vs "," as well.

i cannot send messages from my email using asp.net to other emails
outside my domain

i have this error Mailbox not Found :no such user

anyone ?

Pedro
thanks

----> Code

public static void SendTeste(out string email,out string recip,out
string xi)
{

SiteSettings s = SiteSettings.GetSharedSettings();
xi = "teste";
email = s.SiteEmailFromField;
recip = GetAdminRecipients();

StringBuilder messageBody = new StringBuilder();

messageBody.AppendFormat("Um novo anuncio foi colocado no site
'{0}':", s.SiteName);
messageBody.AppendLine();

try
{
//MailMessage m = new MailMessage(s.SiteEmailFromField,
GetAdminRecipients());
MailMessage m = new MailMessage(s.SiteEmailFromField,
"pedro@code4cerveja.com,dinisnet@hotmail.com,aplp@sapo.pt");
m.Subject ="Novo anuncio colocado:";
m.Body = messageBody.ToString();
SmtpClient client = new SmtpClient();
client.Send(m);
}
catch (Exception x) { //xi = x.Message;

Exception ex2 = x;
//string xi = string.Empty;
while (ex2 != null)
{
xi += ex2.ToString();
ex2 = ex2.InnerException;
}

}

}

------>>>errors

testeSystem.Net.Mail.SmtpFailedRecipientsException: Impossível enviar
para um destinatário. --->
System.Net.Mail.SmtpFailedRecipientException: Caixa de correio não
disponível. A resposta do servidor foi: No such user here --- Fim do
rastreio da pilha de excepção interna --- em
System.Net.Mail.SmtpClient.Send(MailMessage message) em
Logica.Personal.Manutencao.SendTeste(String& email, String& recip,
String& xi) em
f:quartos.code4cerveja.comApp_CodeLogicaManutencao.cs:line
48System.Net.Mail.SmtpFailedRecipientException: Caixa de correio não
disponível. A resposta do servidor foi: No such user here

Caixa de correio não disponível  means Mailbox Not Found

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.