Trouble using System.Web.Mail

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 ---
 
M

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top