Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: EMail Problems with ASP.Net


Message #1 by "Hugh McLaughlin" <hugh@k...> on Tue, 19 Mar 2002 17:04:58
Hello Everyone and thanks for your help in advance.  I am trying to send 
email via an ASP.Net Page.  It is actually a script that is shown and 
operating on ASP101 so I believe that it works properly and is a 
configuration problem on my machine.  The error message i am receiving is:

Exception Details: System.Runtime.InteropServices.COMException: The server 
rejected one or more recipient addresses. The server response was: 550 
5.7.1 Unable to relay for hugh@k...

I am however able to send email from classic ASP scripts using CDONTS.  I 
did notice that in checking IIS, the SMTP Virtual Server is not 
installed.  However I do have Exchange installed so I am not sure if I 
need it or not, especially since I can send from CDONTS.  If I need to 
install this, I am unsure how to go about it since IIS, at least from my 
knowledge, installs as part of Windows 2000 Server.  Any help that you 
could provide would be greatly appreciated.  Thanks.
Message #2 by "Minh T. Nguyen" <nguyentriminh@y...> on Tue, 19 Mar 2002 12:17:21 -0800
Hugh,

	If you are using the System.Web.Mail namespace to send emails,
you have to have your own SMTP server running on the machine you are
hosting the ASP.NET web pages. However, the other alternative is to
point the SMTP server to another remote mail server like this:

	System.Web.Mail.SmtpMail.SmtpServer = "smtp.mail.yahoo.com";
	System.Web.Mail.SmtpMail.Send("myemail@y...",
"recipient@w...", "Hi there", "What's up?");

	Usually the mail servers you use only allow you to send emails
that appear to come from the same domain. So, Yahoo's
smtp.mail.yahoo.com only accepts email send from @yahoo.com. Plus, you
often have to check your mail first before you can send mail, so try to
find a more "liberate" server.
	
Minh.

-----Original Message-----
From: Hugh McLaughlin [mailto:hugh@k...] 
Sent: Tuesday, March 19, 2002 5:05 PM
To: ASP+
Subject: [aspx] EMail Problems with ASP.Net


Hello Everyone and thanks for your help in advance.  I am trying to send

email via an ASP.Net Page.  It is actually a script that is shown and 
operating on ASP101 so I believe that it works properly and is a 
configuration problem on my machine.  The error message i am receiving
is:

Exception Details: System.Runtime.InteropServices.COMException: The
server 
rejected one or more recipient addresses. The server response was: 550 
5.7.1 Unable to relay for hugh@k...

I am however able to send email from classic ASP scripts using CDONTS.
I 
did notice that in checking IIS, the SMTP Virtual Server is not 
installed.  However I do have Exchange installed so I am not sure if I 
need it or not, especially since I can send from CDONTS.  If I need to 
install this, I am unsure how to go about it since IIS, at least from my

knowledge, installs as part of Windows 2000 Server.  Any help that you 
could provide would be greatly appreciated.  Thanks.



_________________________________________________________

Do You Yahoo!?

Get your free @yahoo.com address at http://mail.yahoo.com



Message #3 by "Hugh McLaughlin" <hugh@k...> on Tue, 19 Mar 2002 21:01:48
Any idea how to install the SMTP Server on Windows 2000?
> Hugh,

	If you are using the System.Web.Mail namespace to send emails,
you have to have your own SMTP server running on the machine you are
hosting the ASP.NET web pages. However, the other alternative is to
point the SMTP server to another remote mail server like this:

	System.Web.Mail.SmtpMail.SmtpServer = "smtp.mail.yahoo.com";
	System.Web.Mail.SmtpMail.Send("myemail@y...",
"recipient@w...", "Hi there", "What's up?");

	Usually the mail servers you use only allow you to send emails
that appear to come from the same domain. So, Yahoo's
smtp.mail.yahoo.com only accepts email send from @yahoo.com. Plus, you
often have to check your mail first before you can send mail, so try to
find a more "liberate" server.
	
Minh.

-----Original Message-----
From: Hugh McLaughlin [mailto:hugh@k...] 
Sent: Tuesday, March 19, 2002 5:05 PM
To: ASP+
Subject: [aspx] EMail Problems with ASP.Net


Hello Everyone and thanks for your help in advance.  I am trying to send

email via an ASP.Net Page.  It is actually a script that is shown and 
operating on ASP101 so I believe that it works properly and is a 
configuration problem on my machine.  The error message i am receiving
is:

Exception Details: System.Runtime.InteropServices.COMException: The
server 
rejected one or more recipient addresses. The server response was: 550 
5.7.1 Unable to relay for hugh@k...

I am however able to send email from classic ASP scripts using CDONTS.
I 
did notice that in checking IIS, the SMTP Virtual Server is not 
installed.  However I do have Exchange installed so I am not sure if I 
need it or not, especially since I can send from CDONTS.  If I need to 
install this, I am unsure how to go about it since IIS, at least from my

knowledge, installs as part of Windows 2000 Server.  Any help that you 
could provide would be greatly appreciated.  Thanks.



_________________________________________________________

Do You Yahoo!?

Get your free @yahoo.com address at http://mail.yahoo.com



Message #4 by "McCloy, Russell" <Russell.McCloy@B...> on Wed, 20 Mar 2002 07:56:55 +1100
I reckon you would just put the 2000 CD back in and select add / remove
programs and check a box next to SMTP?

I could be wrong.

RuSs

-----Original Message-----
From: Hugh McLaughlin [mailto:hugh@k...]
Sent: Wednesday, 20 March 2002 8:02 AM
To: ASP+
Subject: [aspx] RE: EMail Problems with ASP.Net


Any idea how to install the SMTP Server on Windows 2000?
> Hugh,

	If you are using the System.Web.Mail namespace to send emails,
you have to have your own SMTP server running on the machine you are
hosting the ASP.NET web pages. However, the other alternative is to
point the SMTP server to another remote mail server like this:

	System.Web.Mail.SmtpMail.SmtpServer = "smtp.mail.yahoo.com";
	System.Web.Mail.SmtpMail.Send("myemail@y...",
"recipient@w...", "Hi there", "What's up?");

	Usually the mail servers you use only allow you to send emails
that appear to come from the same domain. So, Yahoo's
smtp.mail.yahoo.com only accepts email send from @yahoo.com. Plus, you
often have to check your mail first before you can send mail, so try to
find a more "liberate" server.
	
Minh.

-----Original Message-----
From: Hugh McLaughlin [mailto:hugh@k...] 
Sent: Tuesday, March 19, 2002 5:05 PM
To: ASP+
Subject: [aspx] EMail Problems with ASP.Net


Hello Everyone and thanks for your help in advance.  I am trying to send

email via an ASP.Net Page.  It is actually a script that is shown and 
operating on ASP101 so I believe that it works properly and is a 
configuration problem on my machine.  The error message i am receiving
is:

Exception Details: System.Runtime.InteropServices.COMException: The
server 
rejected one or more recipient addresses. The server response was: 550 
5.7.1 Unable to relay for hugh@k...

I am however able to send email from classic ASP scripts using CDONTS.
I 
did notice that in checking IIS, the SMTP Virtual Server is not 
installed.  However I do have Exchange installed so I am not sure if I 
need it or not, especially since I can send from CDONTS.  If I need to 
install this, I am unsure how to go about it since IIS, at least from my

knowledge, installs as part of Windows 2000 Server.  Any help that you 
could provide would be greatly appreciated.  Thanks.



_________________________________________________________

Do You Yahoo!?

Get your free @yahoo.com address at http://mail.yahoo.com



Message #5 by Imar Spaanjaars <Imar@S...> on Tue, 19 Mar 2002 23:22:01 +0100
Hi Hugh,

This is quite easy. Go to "Add/Remove Programs" in the control panel, 
select "Windows Components" from the bar at the left, choose "Internet 
Information Services" and click "Details". The "SMTP Services" is right 
there in the list.



HtH

Imar



At 09:01 PM 3/19/2002 +0000, you wrote:
>Any idea how to install the SMTP Server on Windows 2000?
> > Hugh,
>
>         If you are using the System.Web.Mail namespace to send emails,
>you have to have your own SMTP server running on the machine you are
>hosting the ASP.NET web pages. However, the other alternative is to
>point the SMTP server to another remote mail server like this:
>
>         System.Web.Mail.SmtpMail.SmtpServer = "smtp.mail.yahoo.com";
>         System.Web.Mail.SmtpMail.Send("myemail@y...",
>"recipient@w...", "Hi there", "What's up?");
>
>         Usually the mail servers you use only allow you to send emails
>that appear to come from the same domain. So, Yahoo's
>smtp.mail.yahoo.com only accepts email send from @yahoo.com. Plus, you
>often have to check your mail first before you can send mail, so try to
>find a more "liberate" server.
>
>Minh.


Message #6 by "Paul Birch" <paulbirch@b...> on Tue, 19 Mar 2002 21:24:28 -0000
Hugh,

Installing SMTP is an option from the IIS install.  It runs off port 25, so
make sure you don't have any other software using this (some SAP stuff can
get configured to it).  The only other thing you really need to do is point
your SMTP at a mail server, eg an exchange server on your domain...  you put
the DNS name or IP address in the host textbox on the properties dialog.
That should be about it I think.

You can check what the errors are if you don't manage to send a mail by
looking in the queued directory under Maillroot in inetpub,  there will be a
text equivalent of your mail and also a .eml(I think) file that details the
problem.

A long time since I did any of this, so dont take it all as gospel, but it
should get you started.

Paul.

----- Original Message -----
From: "Hugh McLaughlin" <hugh@k...>
To: "ASP+" <aspx@p...>
Sent: Tuesday, March 19, 2002 9:01 PM
Subject: [aspx] RE: EMail Problems with ASP.Net


> Any idea how to install the SMTP Server on Windows 2000?
> > Hugh,
>
> If you are using the System.Web.Mail namespace to send emails,
> you have to have your own SMTP server running on the machine you are
> hosting the ASP.NET web pages. However, the other alternative is to
> point the SMTP server to another remote mail server like this:
>
> System.Web.Mail.SmtpMail.SmtpServer = "smtp.mail.yahoo.com";
> System.Web.Mail.SmtpMail.Send("myemail@y...",
> "recipient@w...", "Hi there", "What's up?");
>
> Usually the mail servers you use only allow you to send emails
> that appear to come from the same domain. So, Yahoo's
> smtp.mail.yahoo.com only accepts email send from @yahoo.com. Plus, you
> often have to check your mail first before you can send mail, so try to
> find a more "liberate" server.
>
> Minh.
>
> -----Original Message-----
> From: Hugh McLaughlin [mailto:hugh@k...]
> Sent: Tuesday, March 19, 2002 5:05 PM
> To: ASP+
> Subject: [aspx] EMail Problems with ASP.Net
>
>
> Hello Everyone and thanks for your help in advance.  I am trying to send
>
> email via an ASP.Net Page.  It is actually a script that is shown and
> operating on ASP101 so I believe that it works properly and is a
> configuration problem on my machine.  The error message i am receiving
> is:
>
> Exception Details: System.Runtime.InteropServices.COMException: The
> server
> rejected one or more recipient addresses. The server response was: 550
> 5.7.1 Unable to relay for hugh@k...
>
> I am however able to send email from classic ASP scripts using CDONTS.
> I
> did notice that in checking IIS, the SMTP Virtual Server is not
> installed.  However I do have Exchange installed so I am not sure if I
> need it or not, especially since I can send from CDONTS.  If I need to
> install this, I am unsure how to go about it since IIS, at least from my
>
> knowledge, installs as part of Windows 2000 Server.  Any help that you
> could provide would be greatly appreciated.  Thanks.
>
>
>
> _________________________________________________________
>
> Do You Yahoo!?
>
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
>


  Return to Index