473,734 Members | 2,724 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

I have an ASPX page where I send out emails through my mail server
mail.MyDomain.c om. 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.Http Exception: Could not access 'CDO.Message' object. --->
System.Reflecti on.TargetInvoca tionException: 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.RuntimeT ype.InvokeDispM ethod(String name, BindingFlags invokeAttr,
Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture,
String[] namedParameters ) at System.RuntimeT ype.InvokeMembe r(String name,
BindingFlags invokeAttr, Binder binder, Object target, Object[] args,
ParameterModifi er[] modifiers, CultureInfo culture, String[]
namedParameters ) at System.Web.Mail .LateBoundAcces sHelper.CallMet hod(Object
obj, String methodName, Object[] args) --- End of inner exception stack
trace --- at System.Web.Mail .LateBoundAcces sHelper.CallMet hod(Object obj,
String methodName, Object[] args) at
System.Web.Mail .CdoSysHelper.S end(MailMessage message) at
System.Web.Mail .SmtpMail.Send( MailMessage message) at
EarlyAlert3.Ema ilManager.cmdCo nfirmSendEmail_ Click(Object sender, EventArgs
e)

Any ideas?
Nov 18 '05 #1
3 6830
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.co m> 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.Htt pException: Could not access 'CDO.Message' object. --->
System.Reflect ion.TargetInvoc ationException: Exception has been thrown by
the target of an invocation. --->
System.Runtime .InteropService s.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.co m --- End of inner exception stack trace --- at
System.Runtime Type.InvokeDisp Method(String name, BindingFlags invokeAttr,
Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture,
String[] namedParameters ) at System.RuntimeT ype.InvokeMembe r(String name,
BindingFlags invokeAttr, Binder binder, Object target, Object[] args,
ParameterModif ier[] modifiers, CultureInfo culture, String[]
namedParameter s) at System.Web.Mail .LateBoundAcces sHelper.CallMet hod(Object
obj, String methodName, Object[] args) --- End of inner exception stack
trace --- at System.Web.Mail .LateBoundAcces sHelper.CallMet hod(Object obj,
String methodName, Object[] args) at
System.Web.Mai l.CdoSysHelper. Send(MailMessag e message) at
System.Web.Mai l.SmtpMail.Send (MailMessage message) at
EarlyAlert3.Em ailManager.cmdC onfirmSendEmail _Click(Object sender, EventArgs
e)

Any ideas?


Nov 18 '05 #2
tma
Have you enabled IIS to relay for 127.0.0.1?

Then set SmtpMail.SmtpSe rver = "127.0.0.1"

"VB Programmer" <Do************ *****@jEmail.co m> wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
I have an ASPX page where I send out emails through my mail server
mail.MyDomain.c om. 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.Http Exception: Could not access 'CDO.Message' object. --->
System.Reflecti on.TargetInvoca tionException: 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.RuntimeT ype.InvokeDispM ethod(String name, BindingFlags invokeAttr,
Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture,
String[] namedParameters ) at System.RuntimeT ype.InvokeMembe r(String name,
BindingFlags invokeAttr, Binder binder, Object target, Object[] args,
ParameterModifi er[] modifiers, CultureInfo culture, String[]
namedParameters ) at System.Web.Mail .LateBoundAcces sHelper.CallMet hod(Object obj, String methodName, Object[] args) --- End of inner exception stack
trace --- at System.Web.Mail .LateBoundAcces sHelper.CallMet hod(Object obj,
String methodName, Object[] args) at
System.Web.Mail .CdoSysHelper.S end(MailMessage message) at
System.Web.Mail .SmtpMail.Send( MailMessage message) at
EarlyAlert3.Ema ilManager.cmdCo nfirmSendEmail_ Click(Object sender, EventArgs e)

Any ideas?

Nov 18 '05 #3
Thanks. I changed the mail server address and it worked.

"Scott Allen" <bitmask@[nospam].fred.net> wrote in message
news:jk******** *************** *********@4ax.c om...
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.co m> 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.Htt pException: Could not access 'CDO.Message' object. --->
System.Reflect ion.TargetInvoc ationException: Exception has been thrown by
the target of an invocation. --->
System.Runtime .InteropService s.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.co m --- End of inner exception stack trace --- at
System.Runtime Type.InvokeDisp Method(String name, BindingFlags invokeAttr,
Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture,
String[] namedParameters ) at System.RuntimeT ype.InvokeMembe r(String name,
BindingFlags invokeAttr, Binder binder, Object target, Object[] args,
ParameterModif ier[] modifiers, CultureInfo culture, String[]
namedParameter s) at System.Web.Mail .LateBoundAcces sHelper.CallMet hod(Objectobj, String methodName, Object[] args) --- End of inner exception stack
trace --- at System.Web.Mail .LateBoundAcces sHelper.CallMet hod(Object obj,
String methodName, Object[] args) at
System.Web.Mai l.CdoSysHelper. Send(MailMessag e message) at
System.Web.Mai l.SmtpMail.Send (MailMessage message) at
EarlyAlert3.Em ailManager.cmdC onfirmSendEmail _Click(Object sender, EventArgse)

Any ideas?

Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

117
11864
by: Steevo | last post by:
Any suggestions as to the best programs for cloaking email addresses? Many thanks -- Steevo
6
2054
by: Mike the Canadian | last post by:
I am having a very strange problem sending email with php. I have two domains. I can send an email to one domain using php but not the other. If I put both email addresses in the mail command only the one email will arrive. I can send emails the traditional way to the problem domain and they arrive fine. Is there anything that might explain this? _______ Free Windows Clipboard Utility http://www.clipboardmagic.com/
37
2312
by: Patrik Huber | last post by:
Hello! I got the following Code in Assembler (NASM), which prints out "5" in realmode: mov ax, 0xB800 mov es, ax mov byte , '5' I want to do the same in gcc now, but I'm stuck. GCC doesn't like the
4
12699
by: Stephen | last post by:
I have the following code working in order to create an array list and populate a datagrid however everytime i click my button the first item in the array and the first row in the datagrid are overwritten. I think this is some sort of post back problem but i can't seem to figure out how to solve it. Can someone help me with this please. private ArrayList addresses; private void Page_Load(object sender, System.EventArgs e) {
5
1392
by: venky | last post by:
Hello all, I wrote a small program which sends email to different address. I am using smtp object and i set smtp server as my verizon online. I use to send the email, everything works fine except the mail which gets send to hotmail goes and sits in the junk folder of hotmail. Anyone has any ideas why is it happening? anything i need to set in my message header?
6
2417
by: Eduardo Rosa | last post by:
Somebody knows how I queue email using .Net? thanks a lot
6
1424
by: AbraAbraCadabra | last post by:
Ok I think I've almost got my problem solved. I am using this code to send mail. I am simply pasting it into an .ASP page. Why doesn't this code work? I do have ..NET 2.0 installed, but I haven't done any configuration to it. Am I missing something? 'Create a new MailMessage object and specify the"From" and "To" addresses Dim Email As New System.Net.Mail.MailMessage( _
12
4863
by: ll | last post by:
I am trying to finalize a regular expression in javascript to only allow emails with a certain domain to be valid. Here is what I have so far: var emailFilter2=/\@aol.com/; if(!(emailFilter2.test(strng))) { error = "Please enter a valid email address with the AOL domain.\n \n"; }
5
3593
by: wktarin | last post by:
Hi. I'm a relative newcomer to the world of php, and I keep bumping into a problem with a mail () form. I need to send an automatic email to two addresses, but I can't seem to get it to work. One email address works just fine, but I can't get the email sent to two different addresses no matter what I try. Below is my code. If someone could help me spot my errors, I'd appreciate it. Thanks! Code from actual page: <?php //Check if the form...
0
8946
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8776
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9449
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9182
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6735
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6031
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3261
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2724
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.