Trouble using System.Web.Mail

  • Thread starter Thread starter Terry Olsen
  • Start date Start date
T

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: (e-mail address removed);[email protected]
From: (e-mail address removed)
Bcc: (e-mail address removed)
====================
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 ---
 
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.
 
Back
Top