Home All Groups Group Topic Archive Search About

Trouble using System.Web.Mail

Author
7 Jun 2006 1:06 PM
Terry Olsen
When trying to send an email, I get the following exception. It says
that the sender address is invalid, but it is perfectly valid. Any
suggestions?

Error sending email using mail1.us.ups.com
To: a**@ups.com;***@ups.com
From: a**@ups.com
Bcc: a**@ups.com
====================
System.Web.HttpException: Could not access 'CDO.Message' object. --->
System.Reflection.TargetInvocationException: Exception has been thrown
by the target of an invocation. --->
System.Runtime.InteropServices.COMException (0x8004020E): The server
rejected the sender address. The server response was: 501 5.5.4 Invalid
Address

   --- End of inner exception stack trace ---

*** Sent via Developersdex http://www.developersdex.com ***

Author
7 Jun 2006 1:21 PM
Herfried K. Wagner [MVP]
"Terry Olsen" <tolse***@hotmail.com> schrieb:
> When trying to send an email, I get the following exception.

<URL:http://www.systemwebmail.com/>

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
7 Jun 2006 2:51 PM
Mike Lowery
You've provided us with the destination addresses, not the sender address.  The
SMTP server you're communicating with is rejecting your e-mail, not .Net.
You're probably trying to relay.

Show quoteHide quote
"Terry Olsen" <tolse***@hotmail.com> wrote in message
news:%23q3YtMjiGHA.1208@TK2MSFTNGP02.phx.gbl...
> When trying to send an email, I get the following exception. It says
> that the sender address is invalid, but it is perfectly valid. Any
> suggestions?
>
> Error sending email using mail1.us.ups.com
> To: a**@ups.com;***@ups.com
> From: a**@ups.com
> Bcc: a**@ups.com
> ====================
> System.Web.HttpException: Could not access 'CDO.Message' object. --->
> System.Reflection.TargetInvocationException: Exception has been thrown
> by the target of an invocation. --->
> System.Runtime.InteropServices.COMException (0x8004020E): The server
> rejected the sender address. The server response was: 501 5.5.4 Invalid
> Address
>
>   --- End of inner exception stack trace ---
>
> *** Sent via Developersdex http://www.developersdex.com ***