By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,678 Members | 1,920 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,678 IT Pros & Developers. It's quick & easy.

Problem sending email through asp.net page (only certain addresses)

P: n/a
I have an ASPX page where I send out emails through my mail server
mail.MyDomain.com. When I send emails to My****@MyDomain.com it sends
PERFECTLY. When I try sending an email to any other address
(non-MyDomain.com address) I get the following error:

The server rejected one or more recipient addresses. The server response
was: 550 You must check your mail from this IP or SMTP Auth before sending
to BS****@Juno.com

Here's the FULL error:
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 (0x8004020F): The server
rejected one or more recipient addresses. The server response was: 550 You
must check your mail from this IP or SMTP Auth before sending to
BS****@Juno.com --- End of inner exception stack trace --- at
System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr,
Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture,
String[] namedParameters) at System.RuntimeType.InvokeMember(String name,
BindingFlags invokeAttr, Binder binder, Object target, Object[] args,
ParameterModifier[] modifiers, CultureInfo culture, String[]
namedParameters) at System.Web.Mail.LateBoundAccessHelper.CallMethod(O bject
obj, String methodName, Object[] args) --- End of inner exception stack
trace --- at System.Web.Mail.LateBoundAccessHelper.CallMethod(O bject obj,
String methodName, Object[] args) at
System.Web.Mail.CdoSysHelper.Send(MailMessage message) at
System.Web.Mail.SmtpMail.Send(MailMessage message) at
EarlyAlert3.EmailManager.cmdConfirmSendEmail_Click (Object sender, EventArgs
e)

Any ideas?
Nov 18 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Typically this means you are not allowed to "relay" email though your
mail server. A network admin may have to allow relay access from the
IP of your application.

For more info, see:
http://systemwebmail.com/faq/1.4.aspx

Also see section 4.3.* in the above document.

Hope this helps!

--
Scott
http://www.OdeToCode.com

On Mon, 9 Aug 2004 14:41:33 -0400, "VB Programmer"
<Do*****************@jEmail.com> wrote:
I have an ASPX page where I send out emails through my mail server
mail.MyDomain.com. When I send emails to My****@MyDomain.com it sends
PERFECTLY. When I try sending an email to any other address
(non-MyDomain.com address) I get the following error:

The server rejected one or more recipient addresses. The server response
was: 550 You must check your mail from this IP or SMTP Auth before sending
to BS****@Juno.com

Here's the FULL error:
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 (0x8004020F): The server
rejected one or more recipient addresses. The server response was: 550 You
must check your mail from this IP or SMTP Auth before sending to
BS****@Juno.com --- End of inner exception stack trace --- at
System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr,
Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture,
String[] namedParameters) at System.RuntimeType.InvokeMember(String name,
BindingFlags invokeAttr, Binder binder, Object target, Object[] args,
ParameterModifier[] modifiers, CultureInfo culture, String[]
namedParameters) at System.Web.Mail.LateBoundAccessHelper.CallMethod(O bject
obj, String methodName, Object[] args) --- End of inner exception stack
trace --- at System.Web.Mail.LateBoundAccessHelper.CallMethod(O bject obj,
String methodName, Object[] args) at
System.Web.Mail.CdoSysHelper.Send(MailMessage message) at
System.Web.Mail.SmtpMail.Send(MailMessage message) at
EarlyAlert3.EmailManager.cmdConfirmSendEmail_Clic k(Object sender, EventArgs
e)

Any ideas?


Nov 18 '05 #2

P: n/a
tma
Have you enabled IIS to relay for 127.0.0.1?

Then set SmtpMail.SmtpServer = "127.0.0.1"

"VB Programmer" <Do*****************@jEmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
I have an ASPX page where I send out emails through my mail server
mail.MyDomain.com. When I send emails to My****@MyDomain.com it sends
PERFECTLY. When I try sending an email to any other address
(non-MyDomain.com address) I get the following error:

The server rejected one or more recipient addresses. The server response
was: 550 You must check your mail from this IP or SMTP Auth before sending
to BS****@Juno.com

Here's the FULL error:
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 (0x8004020F): The server
rejected one or more recipient addresses. The server response was: 550 You
must check your mail from this IP or SMTP Auth before sending to
BS****@Juno.com --- End of inner exception stack trace --- at
System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr,
Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture,
String[] namedParameters) at System.RuntimeType.InvokeMember(String name,
BindingFlags invokeAttr, Binder binder, Object target, Object[] args,
ParameterModifier[] modifiers, CultureInfo culture, String[]
namedParameters) at System.Web.Mail.LateBoundAccessHelper.CallMethod(O bject obj, String methodName, Object[] args) --- End of inner exception stack
trace --- at System.Web.Mail.LateBoundAccessHelper.CallMethod(O bject obj,
String methodName, Object[] args) at
System.Web.Mail.CdoSysHelper.Send(MailMessage message) at
System.Web.Mail.SmtpMail.Send(MailMessage message) at
EarlyAlert3.EmailManager.cmdConfirmSendEmail_Click (Object sender, EventArgs e)

Any ideas?

Nov 18 '05 #3

P: n/a
Thanks. I changed the mail server address and it worked.

"Scott Allen" <bitmask@[nospam].fred.net> wrote in message
news:jk********************************@4ax.com...
Typically this means you are not allowed to "relay" email though your
mail server. A network admin may have to allow relay access from the
IP of your application.

For more info, see:
http://systemwebmail.com/faq/1.4.aspx

Also see section 4.3.* in the above document.

Hope this helps!

--
Scott
http://www.OdeToCode.com

On Mon, 9 Aug 2004 14:41:33 -0400, "VB Programmer"
<Do*****************@jEmail.com> wrote:
I have an ASPX page where I send out emails through my mail server
mail.MyDomain.com. When I send emails to My****@MyDomain.com it sends
PERFECTLY. When I try sending an email to any other address
(non-MyDomain.com address) I get the following error:

The server rejected one or more recipient addresses. The server response
was: 550 You must check your mail from this IP or SMTP Auth before sendingto BS****@Juno.com

Here's the FULL error:
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 (0x8004020F): The server
rejected one or more recipient addresses. The server response was: 550 Youmust check your mail from this IP or SMTP Auth before sending to
BS****@Juno.com --- End of inner exception stack trace --- at
System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr,
Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture,
String[] namedParameters) at System.RuntimeType.InvokeMember(String name,
BindingFlags invokeAttr, Binder binder, Object target, Object[] args,
ParameterModifier[] modifiers, CultureInfo culture, String[]
namedParameters) at System.Web.Mail.LateBoundAccessHelper.CallMethod(O bjectobj, String methodName, Object[] args) --- End of inner exception stack
trace --- at System.Web.Mail.LateBoundAccessHelper.CallMethod(O bject obj,
String methodName, Object[] args) at
System.Web.Mail.CdoSysHelper.Send(MailMessage message) at
System.Web.Mail.SmtpMail.Send(MailMessage message) at
EarlyAlert3.EmailManager.cmdConfirmSendEmail_Clic k(Object sender, EventArgse)

Any ideas?

Nov 18 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.