Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Thu, 4 Sep 2008 12:33:27 -0400,    group: microsoft.public.dotnet.framework.aspnet        back       


SmtpFailedRecipientsException error   
When I test out my web app using my smtp server it works fine.  When I put 
my clients smtp server info (SMTP server and FROM address) I get this error 
when trying to email from the web app.  Any ideas?


 System.Net.Mail.SmtpFailedRecipientsException: Unable to send to all 
recipients. ---> System.Net.Mail.SmtpFailedRecipientException: Mailbox 
unavailable. The server response was: 5.7.1 ... Relaying denied --- End of 
inner exception stack trace --- at 
System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, 
MailAddressCollection recipients, String deliveryNotify, 
SmtpFailedRecipientException& exception) at 
System.Net.Mail.SmtpClient.Send(MailMessage message) at 
test.SendEmail(Boolean bFullPlanOrder) in 
C:\inetpub\wwwroot\email\test.aspx.vb:line 32



Lin 32 is a simple smtp.Send(mymessage).
date: Thu, 4 Sep 2008 12:33:27 -0400   author:   Cirene

Re: SmtpFailedRecipientsException error   
"Cirene"  wrote in message 
news:%23Pnj2vqDJHA.4724@TK2MSFTNGP05.phx.gbl...
> When I test out my web app using my smtp server it works fine.  When I put 
> my clients smtp server info (SMTP server and FROM address) I get this 
> error when trying to email from the web app.  Any ideas?
>
>
> System.Net.Mail.SmtpFailedRecipientsException: Unable to send to all 
> recipients. ---> System.Net.Mail.SmtpFailedRecipientException: Mailbox 
> unavailable. The server response was: 5.7.1 ... Relaying denied --- End of 
> inner exception stack trace --- at 
> System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, 
> MailAddressCollection recipients, String deliveryNotify, 
> SmtpFailedRecipientException& exception) at 
> System.Net.Mail.SmtpClient.Send(MailMessage message) at 
> test.SendEmail(Boolean bFullPlanOrder) in 
> C:\inetpub\wwwroot\email\test.aspx.vb:line 32
>
>
>
> Lin 32 is a simple smtp.Send(mymessage).

To prevent spambots from using infected machine to send zillions of emails 
through a SMTP server the range of IP addresses that can relay through an 
SMTP server is restricted.  The SMTP server that you are pointing your code 
at needs to allow relay from the IP address that it sees for the Web server 
running this code.

-- 
Anthony Jones - MVP ASP/ASP.NET
date: Fri, 5 Sep 2008 11:01:13 +0100   author:   Anthony Jones

Re: SmtpFailedRecipientsException error   
Thanks Anthony!

"Anthony Jones"  wrote in message 
news:u108V5zDJHA.4588@TK2MSFTNGP06.phx.gbl...
> "Cirene"  wrote in message 
> news:%23Pnj2vqDJHA.4724@TK2MSFTNGP05.phx.gbl...
>> When I test out my web app using my smtp server it works fine.  When I 
>> put my clients smtp server info (SMTP server and FROM address) I get this 
>> error when trying to email from the web app.  Any ideas?
>>
>>
>> System.Net.Mail.SmtpFailedRecipientsException: Unable to send to all 
>> recipients. ---> System.Net.Mail.SmtpFailedRecipientException: Mailbox 
>> unavailable. The server response was: 5.7.1 ... Relaying denied --- End 
>> of inner exception stack trace --- at 
>> System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, 
>> MailAddressCollection recipients, String deliveryNotify, 
>> SmtpFailedRecipientException& exception) at 
>> System.Net.Mail.SmtpClient.Send(MailMessage message) at 
>> test.SendEmail(Boolean bFullPlanOrder) in 
>> C:\inetpub\wwwroot\email\test.aspx.vb:line 32
>>
>>
>>
>> Lin 32 is a simple smtp.Send(mymessage).
>
> To prevent spambots from using infected machine to send zillions of emails 
> through a SMTP server the range of IP addresses that can relay through an 
> SMTP server is restricted.  The SMTP server that you are pointing your 
> code at needs to allow relay from the IP address that it sees for the Web 
> server running this code.
>
> -- 
> Anthony Jones - MVP ASP/ASP.NET
>
date: Fri, 5 Sep 2008 21:34:21 -0400   author:   Cirene

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us