473,396 Members | 2,014 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Email not working

I have a W2003 server running my website and I am trying to set up my pages
to send email using System.Web.Mail.

I have pages running on this machine using CDONTS that work fine.

I am using our exchange server to send the mail but am getting an "Unable to
relay" message. But the "From" name is my email address, which is obviously
on our exchange server, so there is no relay.

The message I get back is:

"The server rejected one or more recipient addresses. The server response
was: 550 5.7.1 Unable to relay for ts**********@yahoo.com"

My trace is showing:

"Could not access 'CDO.Message' object.
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 ASP.emailtest_aspx.Page_Load(Object sender, EventArgs e) in
C:\Inetpub\wwwroot\payrollworkshop\Development\ema iltest.aspx:line 15
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain()"

Am I missing something here?

The ts*********@yahoo.com is my personal email.

Thanks,

Tom
Nov 19 '05 #1
11 1841
Sorry,

I forgot to add the code:

*************************************************
<%@ Page Language="VB" trace="true" debug="true" ContentType="text/html"
ResponseEncoding="iso-8859-1" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ Import Namespace="System.Web.Mail" %>

<html>
<script runat="server">
Sub Page_Load(sender as Object, e as EventArgs)
Dim Message As New MailMessage()
message.To = "ts**********@yahoo.com"
message.From = "tf*@fsc.com"
message.Subject = "This is a test"
message.Body = "This is the body"
message.BodyFormat = MailFormat.Html
SmtpMail.SmtpServer = "email.ftsolutions.com"
smtpMail.Send(message)
End Sub
</script>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Submit Resume</title>
</head>
<link href="staffing.css" rel="stylesheet" type="text/css">
</head>
<body>
</body>
</html>
************************************************** **********

Thanks,

Tom
"tshad" <ts**********@ftsolutions.com> wrote in message
news:u1****************@TK2MSFTNGP12.phx.gbl...
I have a W2003 server running my website and I am trying to set up my pages
to send email using System.Web.Mail.

I have pages running on this machine using CDONTS that work fine.

I am using our exchange server to send the mail but am getting an "Unable
to relay" message. But the "From" name is my email address, which is
obviously on our exchange server, so there is no relay.

The message I get back is:

"The server rejected one or more recipient addresses. The server response
was: 550 5.7.1 Unable to relay for ts**********@yahoo.com"

My trace is showing:

"Could not access 'CDO.Message' object.
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 ASP.emailtest_aspx.Page_Load(Object sender, EventArgs e) in
C:\Inetpub\wwwroot\payrollworkshop\Development\ema iltest.aspx:line 15
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain()"

Am I missing something here?

The ts*********@yahoo.com is my personal email.

Thanks,

Tom

Nov 19 '05 #2
Exchange, by default, only relays from the domain it sits on. There are two
options:

1. Allow your domain (yahoo.com) to be added.
2. Allow all relays from the IP address of the web server (better option,
for security).
---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
"tshad" wrote:
I have a W2003 server running my website and I am trying to set up my pages
to send email using System.Web.Mail.

I have pages running on this machine using CDONTS that work fine.

I am using our exchange server to send the mail but am getting an "Unable to
relay" message. But the "From" name is my email address, which is obviously
on our exchange server, so there is no relay.

The message I get back is:

"The server rejected one or more recipient addresses. The server response
was: 550 5.7.1 Unable to relay for ts**********@yahoo.com"

My trace is showing:

"Could not access 'CDO.Message' object.
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 ASP.emailtest_aspx.Page_Load(Object sender, EventArgs e) in
C:\Inetpub\wwwroot\payrollworkshop\Development\ema iltest.aspx:line 15
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain()"

Am I missing something here?

The ts*********@yahoo.com is my personal email.

Thanks,

Tom

Nov 19 '05 #3
"Cowboy (Gregory A. Beamer) - MVP" <No************@comcast.netNoSpamM> wrote
in message news:4C**********************************@microsof t.com...
Exchange, by default, only relays from the domain it sits on. There are
two
options:

1. Allow your domain (yahoo.com) to be added.
2. Allow all relays from the IP address of the web server (better option,
for security).
But why is CDONTS working?

Is it being sent from the Windows 2003 server instead of the Exchange
Server?

If this is the case, how do I tell System.Web.Mail to send it the same way?

Which would be better?

Thanks,

Tom


---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
"tshad" wrote:
I have a W2003 server running my website and I am trying to set up my
pages
to send email using System.Web.Mail.

I have pages running on this machine using CDONTS that work fine.

I am using our exchange server to send the mail but am getting an "Unable
to
relay" message. But the "From" name is my email address, which is
obviously
on our exchange server, so there is no relay.

The message I get back is:

"The server rejected one or more recipient addresses. The server response
was: 550 5.7.1 Unable to relay for ts**********@yahoo.com"

My trace is showing:

"Could not access 'CDO.Message' object.
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 ASP.emailtest_aspx.Page_Load(Object sender, EventArgs e) in
C:\Inetpub\wwwroot\payrollworkshop\Development\ema iltest.aspx:line 15
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain()"

Am I missing something here?

The ts*********@yahoo.com is my personal email.

Thanks,

Tom

Nov 19 '05 #4
You could setup an smtp service in your W2K3 Server,
and use *that* to forward your emails, instead of
using your Exchange Server to relay the emails.

It's pretty straightforward...and works like a charm.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
=====================

"tshad" <ts**********@ftsolutions.com> wrote in message
news:eq****************@TK2MSFTNGP14.phx.gbl...
"Cowboy (Gregory A. Beamer) - MVP" <No************@comcast.netNoSpamM>
wrote in message
news:4C**********************************@microsof t.com...
Exchange, by default, only relays from the domain it sits on. There are
two
options:

1. Allow your domain (yahoo.com) to be added.
2. Allow all relays from the IP address of the web server (better option,
for security).


But why is CDONTS working?

Is it being sent from the Windows 2003 server instead of the Exchange
Server?

If this is the case, how do I tell System.Web.Mail to send it the same
way?

Which would be better?

Thanks,

Tom


---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
"tshad" wrote:
I have a W2003 server running my website and I am trying to set up my
pages
to send email using System.Web.Mail.

I have pages running on this machine using CDONTS that work fine.

I am using our exchange server to send the mail but am getting an
"Unable to
relay" message. But the "From" name is my email address, which is
obviously
on our exchange server, so there is no relay.

The message I get back is:

"The server rejected one or more recipient addresses. The server
response
was: 550 5.7.1 Unable to relay for ts**********@yahoo.com"

My trace is showing:

"Could not access 'CDO.Message' object.
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 ASP.emailtest_aspx.Page_Load(Object sender, EventArgs e) in
C:\Inetpub\wwwroot\payrollworkshop\Development\ema iltest.aspx:line 15
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain()"

Am I missing something here?

The ts*********@yahoo.com is my personal email.

Thanks,

Tom


Nov 19 '05 #5
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:OK**************@tk2msftngp13.phx.gbl...
You could setup an smtp service in your W2K3 Server,
and use *that* to forward your emails, instead of
using your Exchange Server to relay the emails.

It's pretty straightforward...and works like a charm.
If CDONTS is working, would it already be doing that?

Also, what would I put in my SmtpMail.SmtpServer field?

Thanks,

Tom
Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
=====================

"tshad" <ts**********@ftsolutions.com> wrote in message
news:eq****************@TK2MSFTNGP14.phx.gbl...
"Cowboy (Gregory A. Beamer) - MVP" <No************@comcast.netNoSpamM>
wrote in message
news:4C**********************************@microsof t.com...
Exchange, by default, only relays from the domain it sits on. There are
two
options:

1. Allow your domain (yahoo.com) to be added.
2. Allow all relays from the IP address of the web server (better
option,
for security).


But why is CDONTS working?

Is it being sent from the Windows 2003 server instead of the Exchange
Server?

If this is the case, how do I tell System.Web.Mail to send it the same
way?

Which would be better?

Thanks,

Tom


---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
"tshad" wrote:

I have a W2003 server running my website and I am trying to set up my
pages
to send email using System.Web.Mail.

I have pages running on this machine using CDONTS that work fine.

I am using our exchange server to send the mail but am getting an
"Unable to
relay" message. But the "From" name is my email address, which is
obviously
on our exchange server, so there is no relay.

The message I get back is:

"The server rejected one or more recipient addresses. The server
response
was: 550 5.7.1 Unable to relay for ts**********@yahoo.com"

My trace is showing:

"Could not access 'CDO.Message' object.
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 ASP.emailtest_aspx.Page_Load(Object sender, EventArgs e) in
C:\Inetpub\wwwroot\payrollworkshop\Development\ema iltest.aspx:line 15
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain()"

Am I missing something here?

The ts*********@yahoo.com is my personal email.

Thanks,

Tom



Nov 19 '05 #6
"tshad" <ts**********@ftsolutions.com> wrote in message
news:ek*************@TK2MSFTNGP12.phx.gbl...
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:OK**************@tk2msftngp13.phx.gbl...
You could setup an smtp service in your W2K3 Server,
and use *that* to forward your emails, instead of
using your Exchange Server to relay the emails.

It's pretty straightforward...and works like a charm.
If CDONTS is working, would it already be doing that?

Also, what would I put in my SmtpMail.SmtpServer field?


I tried setting it to:

SmtpMail.SmtpServer = "127.0.0.1"

But that didn't work.

Tom
Thanks,

Tom

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
=====================

"tshad" <ts**********@ftsolutions.com> wrote in message
news:eq****************@TK2MSFTNGP14.phx.gbl...
"Cowboy (Gregory A. Beamer) - MVP" <No************@comcast.netNoSpamM>
wrote in message
news:4C**********************************@microsof t.com...
Exchange, by default, only relays from the domain it sits on. There are
two
options:

1. Allow your domain (yahoo.com) to be added.
2. Allow all relays from the IP address of the web server (better
option,
for security).

But why is CDONTS working?

Is it being sent from the Windows 2003 server instead of the Exchange
Server?

If this is the case, how do I tell System.Web.Mail to send it the same
way?

Which would be better?

Thanks,

Tom

---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
"tshad" wrote:

> I have a W2003 server running my website and I am trying to set up my
> pages
> to send email using System.Web.Mail.
>
> I have pages running on this machine using CDONTS that work fine.
>
> I am using our exchange server to send the mail but am getting an
> "Unable to
> relay" message. But the "From" name is my email address, which is
> obviously
> on our exchange server, so there is no relay.
>
> The message I get back is:
>
> "The server rejected one or more recipient addresses. The server
> response
> was: 550 5.7.1 Unable to relay for ts**********@yahoo.com"
>
> My trace is showing:
>
> "Could not access 'CDO.Message' object.
> 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 ASP.emailtest_aspx.Page_Load(Object sender, EventArgs e) in
> C:\Inetpub\wwwroot\payrollworkshop\Development\ema iltest.aspx:line 15
> at System.Web.UI.Control.OnLoad(EventArgs e)
> at System.Web.UI.Control.LoadRecursive()
> at System.Web.UI.Page.ProcessRequestMain()"
>
> Am I missing something here?
>
> The ts*********@yahoo.com is my personal email.
>
> Thanks,
>
> Tom
>
>
>



Nov 19 '05 #7
re:
I tried setting it to:
SmtpMail.SmtpServer = "127.0.0.1"
But that didn't work.
Did you set up the smtp server service ?
If you didn't, that can't work.

I set up an smtp service, and assigned it the same
name as my domain name, and it works all the time.

Click your Start button, hit the "Help and Support" link,
and search for "install smtp service" when the Help and
Support Center opens.

When the search ends, You should see several links
with the information you need to setup the smtp service.

Follow the instructions...

Hint: you don't actually need to run the POP3
service, although if you want to, you certainly can.

What I did is that, after installing the POP3 and SMTP services,
since I didn't want to run a full mail server, I uninstalled the
POP3 service, *but left the SMTP service running*.

Let us know if you run into trouble doing that.


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
=====================

"tshad" <ts**********@ftsolutions.com> wrote in message
news:u9*************@TK2MSFTNGP09.phx.gbl... "tshad" <ts**********@ftsolutions.com> wrote in message
news:ek*************@TK2MSFTNGP12.phx.gbl...
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:OK**************@tk2msftngp13.phx.gbl...
You could setup an smtp service in your W2K3 Server,
and use *that* to forward your emails, instead of
using your Exchange Server to relay the emails.

It's pretty straightforward...and works like a charm.


If CDONTS is working, would it already be doing that?

Also, what would I put in my SmtpMail.SmtpServer field?


I tried setting it to:

SmtpMail.SmtpServer = "127.0.0.1"

But that didn't work.

Tom

Thanks,

Tom

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
=====================

"tshad" <ts**********@ftsolutions.com> wrote in message
news:eq****************@TK2MSFTNGP14.phx.gbl...
"Cowboy (Gregory A. Beamer) - MVP" <No************@comcast.netNoSpamM>
wrote in message
news:4C**********************************@microsof t.com...
> Exchange, by default, only relays from the domain it sits on. There
> are two
> options:
>
> 1. Allow your domain (yahoo.com) to be added.
> 2. Allow all relays from the IP address of the web server (better
> option,
> for security).

But why is CDONTS working?

Is it being sent from the Windows 2003 server instead of the Exchange
Server?

If this is the case, how do I tell System.Web.Mail to send it the same
way?

Which would be better?

Thanks,

Tom

>
>
> ---
>
> Gregory A. Beamer
> MVP; MCP: +I, SE, SD, DBA
>
> ***************************
> Think Outside the Box!
> ***************************
>
>
> "tshad" wrote:
>
>> I have a W2003 server running my website and I am trying to set up my
>> pages
>> to send email using System.Web.Mail.
>>
>> I have pages running on this machine using CDONTS that work fine.
>>
>> I am using our exchange server to send the mail but am getting an
>> "Unable to
>> relay" message. But the "From" name is my email address, which is
>> obviously
>> on our exchange server, so there is no relay.
>>
>> The message I get back is:
>>
>> "The server rejected one or more recipient addresses. The server
>> response
>> was: 550 5.7.1 Unable to relay for ts**********@yahoo.com"
>>
>> My trace is showing:
>>
>> "Could not access 'CDO.Message' object.
>> 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 ASP.emailtest_aspx.Page_Load(Object sender, EventArgs e) in
>> C:\Inetpub\wwwroot\payrollworkshop\Development\ema iltest.aspx:line 15
>> at System.Web.UI.Control.OnLoad(EventArgs e)
>> at System.Web.UI.Control.LoadRecursive()
>> at System.Web.UI.Page.ProcessRequestMain()"
>>
>> Am I missing something here?
>>
>> The ts*********@yahoo.com is my personal email.
>>
>> Thanks,
>>
>> Tom
>>
>>
>>



Nov 19 '05 #8
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:ef**************@TK2MSFTNGP10.phx.gbl...
re:
I tried setting it to:
SmtpMail.SmtpServer = "127.0.0.1"
But that didn't work.
Did you set up the smtp server service ?
If you didn't, that can't work.


I looked and it was already set up and running.

It was set up with the name "Simple Mail Transfer Protocol (SMTP)".

It was logged on as a Local System Account.

I set up an smtp service, and assigned it the same
name as my domain name, and it works all the time.

Click your Start button, hit the "Help and Support" link,
and search for "install smtp service" when the Help and
Support Center opens.

When the search ends, You should see several links
with the information you need to setup the smtp service.

Follow the instructions...

Hint: you don't actually need to run the POP3
service, although if you want to, you certainly can.
I don't need need POP3, I only need to be able to send from my Web Server.

What I did is that, after installing the POP3 and SMTP services,
since I didn't want to run a full mail server, I uninstalled the
POP3 service, *but left the SMTP service running*.

Let us know if you run into trouble doing that.
It still doesn't work. I don't want to change the name as I don't know how
that would affect the other programs using CDONTS.

Tom

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
=====================

"tshad" <ts**********@ftsolutions.com> wrote in message
news:u9*************@TK2MSFTNGP09.phx.gbl...
"tshad" <ts**********@ftsolutions.com> wrote in message
news:ek*************@TK2MSFTNGP12.phx.gbl...
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:OK**************@tk2msftngp13.phx.gbl...
You could setup an smtp service in your W2K3 Server,
and use *that* to forward your emails, instead of
using your Exchange Server to relay the emails.

It's pretty straightforward...and works like a charm.

If CDONTS is working, would it already be doing that?

Also, what would I put in my SmtpMail.SmtpServer field?


I tried setting it to:

SmtpMail.SmtpServer = "127.0.0.1"

But that didn't work.

Tom

Thanks,

Tom

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
=====================

"tshad" <ts**********@ftsolutions.com> wrote in message
news:eq****************@TK2MSFTNGP14.phx.gbl...
> "Cowboy (Gregory A. Beamer) - MVP" <No************@comcast.netNoSpamM>
> wrote in message
> news:4C**********************************@microsof t.com...
>> Exchange, by default, only relays from the domain it sits on. There
>> are two
>> options:
>>
>> 1. Allow your domain (yahoo.com) to be added.
>> 2. Allow all relays from the IP address of the web server (better
>> option,
>> for security).
>
> But why is CDONTS working?
>
> Is it being sent from the Windows 2003 server instead of the Exchange
> Server?
>
> If this is the case, how do I tell System.Web.Mail to send it the same
> way?
>
> Which would be better?
>
> Thanks,
>
> Tom
>
>>
>>
>> ---
>>
>> Gregory A. Beamer
>> MVP; MCP: +I, SE, SD, DBA
>>
>> ***************************
>> Think Outside the Box!
>> ***************************
>>
>>
>> "tshad" wrote:
>>
>>> I have a W2003 server running my website and I am trying to set up
>>> my pages
>>> to send email using System.Web.Mail.
>>>
>>> I have pages running on this machine using CDONTS that work fine.
>>>
>>> I am using our exchange server to send the mail but am getting an
>>> "Unable to
>>> relay" message. But the "From" name is my email address, which is
>>> obviously
>>> on our exchange server, so there is no relay.
>>>
>>> The message I get back is:
>>>
>>> "The server rejected one or more recipient addresses. The server
>>> response
>>> was: 550 5.7.1 Unable to relay for ts**********@yahoo.com"
>>>
>>> My trace is showing:
>>>
>>> "Could not access 'CDO.Message' object.
>>> 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 ASP.emailtest_aspx.Page_Load(Object sender, EventArgs e) in
>>> C:\Inetpub\wwwroot\payrollworkshop\Development\ema iltest.aspx:line
>>> 15
>>> at System.Web.UI.Control.OnLoad(EventArgs e)
>>> at System.Web.UI.Control.LoadRecursive()
>>> at System.Web.UI.Page.ProcessRequestMain()"
>>>
>>> Am I missing something here?
>>>
>>> The ts*********@yahoo.com is my personal email.
>>>
>>> Thanks,
>>>
>>> Tom
>>>
>>>
>>>
>
>



Nov 19 '05 #9
re:
I looked and it was already set up and running.
It was set up with the name "Simple Mail Transfer Protocol (SMTP)".
Good! You're halfway there!

re: SmtpMail.SmtpServer = "127.0.0.1"
Try using "localhost", instead of "127.0.0.1"

Also, you could try to use the default domain name
for the smtp server ( Open the smtp server's properties
in the IIS MMC, and see what the default domain name is.
Then, use *that* name, instead of "127.0.0.1" or "localhost")

Warning: some mail servers reject single-name smtp server
aliases. They only accept full domain names ( domainname.com ).

Do you have a registered domain name for your server ?

If you do, just create a new smtp domain,
and assign it your domain name.

Not to worry, there won't be a name conflict.

re: It still doesn't work. I don't want to change the name as I don't know
how that would affect the other programs using CDONTS.
You don't have to change the name of the existing smtp server.

You can create as many aliases as you want to.
Open the IIS MMC, select the default smtp server,
expand the tree, select "Domain", right-click "Domains",
and select "New" --> Domain.

Then configure it as you see fit.

The current domain will continue to work as usual.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
=====================

"tshad" <ts**********@ftsolutions.com> wrote in message
news:uo**************@TK2MSFTNGP10.phx.gbl... "Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:ef**************@TK2MSFTNGP10.phx.gbl...
re:
I tried setting it to:
SmtpMail.SmtpServer = "127.0.0.1"
But that didn't work.


Did you set up the smtp server service ?
If you didn't, that can't work.


I looked and it was already set up and running.

It was set up with the name "Simple Mail Transfer Protocol (SMTP)".

It was logged on as a Local System Account.

I set up an smtp service, and assigned it the same
name as my domain name, and it works all the time.

Click your Start button, hit the "Help and Support" link,
and search for "install smtp service" when the Help and
Support Center opens.

When the search ends, You should see several links
with the information you need to setup the smtp service.

Follow the instructions...

Hint: you don't actually need to run the POP3
service, although if you want to, you certainly can.


I don't need need POP3, I only need to be able to send from my Web Server.

What I did is that, after installing the POP3 and SMTP services,
since I didn't want to run a full mail server, I uninstalled the
POP3 service, *but left the SMTP service running*.

Let us know if you run into trouble doing that.


It still doesn't work. I don't want to change the name as I don't know
how that would affect the other programs using CDONTS.

Tom


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
=====================

"tshad" <ts**********@ftsolutions.com> wrote in message
news:u9*************@TK2MSFTNGP09.phx.gbl...
"tshad" <ts**********@ftsolutions.com> wrote in message
news:ek*************@TK2MSFTNGP12.phx.gbl...
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:OK**************@tk2msftngp13.phx.gbl...
> You could setup an smtp service in your W2K3 Server,
> and use *that* to forward your emails, instead of
> using your Exchange Server to relay the emails.
>
> It's pretty straightforward...and works like a charm.

If CDONTS is working, would it already be doing that?

Also, what would I put in my SmtpMail.SmtpServer field?

I tried setting it to:

SmtpMail.SmtpServer = "127.0.0.1"

But that didn't work.

Tom

Thanks,

Tom
>
>
>
> Juan T. Llibre
> ASP.NET MVP
> http://asp.net.do/foros/
> Foros de ASP.NET en Español
> =====================
>
> "tshad" <ts**********@ftsolutions.com> wrote in message
> news:eq****************@TK2MSFTNGP14.phx.gbl...
>> "Cowboy (Gregory A. Beamer) - MVP"
>> <No************@comcast.netNoSpamM> wrote in message
>> news:4C**********************************@microsof t.com...
>>> Exchange, by default, only relays from the domain it sits on. There
>>> are two
>>> options:
>>>
>>> 1. Allow your domain (yahoo.com) to be added.
>>> 2. Allow all relays from the IP address of the web server (better
>>> option,
>>> for security).
>>
>> But why is CDONTS working?
>>
>> Is it being sent from the Windows 2003 server instead of the Exchange
>> Server?
>>
>> If this is the case, how do I tell System.Web.Mail to send it the
>> same way?
>>
>> Which would be better?
>>
>> Thanks,
>>
>> Tom
>>
>>>
>>>
>>> ---
>>>
>>> Gregory A. Beamer
>>> MVP; MCP: +I, SE, SD, DBA
>>>
>>> ***************************
>>> Think Outside the Box!
>>> ***************************
>>>
>>>
>>> "tshad" wrote:
>>>
>>>> I have a W2003 server running my website and I am trying to set up
>>>> my pages
>>>> to send email using System.Web.Mail.
>>>>
>>>> I have pages running on this machine using CDONTS that work fine.
>>>>
>>>> I am using our exchange server to send the mail but am getting an
>>>> "Unable to
>>>> relay" message. But the "From" name is my email address, which is
>>>> obviously
>>>> on our exchange server, so there is no relay.
>>>>
>>>> The message I get back is:
>>>>
>>>> "The server rejected one or more recipient addresses. The server
>>>> response
>>>> was: 550 5.7.1 Unable to relay for ts**********@yahoo.com"
>>>>
>>>> My trace is showing:
>>>>
>>>> "Could not access 'CDO.Message' object.
>>>> 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 ASP.emailtest_aspx.Page_Load(Object sender, EventArgs e) in
>>>> C:\Inetpub\wwwroot\payrollworkshop\Development\ema iltest.aspx:line
>>>> 15
>>>> at System.Web.UI.Control.OnLoad(EventArgs e)
>>>> at System.Web.UI.Control.LoadRecursive()
>>>> at System.Web.UI.Page.ProcessRequestMain()"
>>>>
>>>> Am I missing something here?
>>>>
>>>> The ts*********@yahoo.com is my personal email.
>>>>
>>>> Thanks,
>>>>
>>>> Tom
>>>>
>>>>
>>>>
>>
>>
>
>



Nov 19 '05 #10
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:Oi**************@TK2MSFTNGP10.phx.gbl...
re:
I looked and it was already set up and running.
It was set up with the name "Simple Mail Transfer Protocol (SMTP)".
Good! You're halfway there!

re:
SmtpMail.SmtpServer = "127.0.0.1"


Try using "localhost", instead of "127.0.0.1"


That worked.

Why didn't 127.0.0.1?

Also, why didn't I have to do all this to get CDONTS to work?

Thanks,

Tom
Also, you could try to use the default domain name
for the smtp server ( Open the smtp server's properties
in the IIS MMC, and see what the default domain name is.
Then, use *that* name, instead of "127.0.0.1" or "localhost")

Warning: some mail servers reject single-name smtp server
aliases. They only accept full domain names ( domainname.com ).

Do you have a registered domain name for your server ?

If you do, just create a new smtp domain,
and assign it your domain name.

Not to worry, there won't be a name conflict.

re:
It still doesn't work. I don't want to change the name as I don't know
how that would affect the other programs using CDONTS.


You don't have to change the name of the existing smtp server.

You can create as many aliases as you want to.
Open the IIS MMC, select the default smtp server,
expand the tree, select "Domain", right-click "Domains",
and select "New" --> Domain.

Then configure it as you see fit.

The current domain will continue to work as usual.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
=====================

"tshad" <ts**********@ftsolutions.com> wrote in message
news:uo**************@TK2MSFTNGP10.phx.gbl...
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:ef**************@TK2MSFTNGP10.phx.gbl...
re:
I tried setting it to:
SmtpMail.SmtpServer = "127.0.0.1"
But that didn't work.

Did you set up the smtp server service ?
If you didn't, that can't work.


I looked and it was already set up and running.

It was set up with the name "Simple Mail Transfer Protocol (SMTP)".

It was logged on as a Local System Account.

I set up an smtp service, and assigned it the same
name as my domain name, and it works all the time.

Click your Start button, hit the "Help and Support" link,
and search for "install smtp service" when the Help and
Support Center opens.

When the search ends, You should see several links
with the information you need to setup the smtp service.

Follow the instructions...

Hint: you don't actually need to run the POP3
service, although if you want to, you certainly can.


I don't need need POP3, I only need to be able to send from my Web
Server.

What I did is that, after installing the POP3 and SMTP services,
since I didn't want to run a full mail server, I uninstalled the
POP3 service, *but left the SMTP service running*.

Let us know if you run into trouble doing that.


It still doesn't work. I don't want to change the name as I don't know
how that would affect the other programs using CDONTS.

Tom


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
=====================

"tshad" <ts**********@ftsolutions.com> wrote in message
news:u9*************@TK2MSFTNGP09.phx.gbl...
"tshad" <ts**********@ftsolutions.com> wrote in message
news:ek*************@TK2MSFTNGP12.phx.gbl...
> "Juan T. Llibre" <no***********@nowhere.com> wrote in message
> news:OK**************@tk2msftngp13.phx.gbl...
>> You could setup an smtp service in your W2K3 Server,
>> and use *that* to forward your emails, instead of
>> using your Exchange Server to relay the emails.
>>
>> It's pretty straightforward...and works like a charm.
>
> If CDONTS is working, would it already be doing that?
>
> Also, what would I put in my SmtpMail.SmtpServer field?

I tried setting it to:

SmtpMail.SmtpServer = "127.0.0.1"

But that didn't work.

Tom
>
> Thanks,
>
> Tom
>>
>>
>>
>> Juan T. Llibre
>> ASP.NET MVP
>> http://asp.net.do/foros/
>> Foros de ASP.NET en Español
>> =====================
>>
>> "tshad" <ts**********@ftsolutions.com> wrote in message
>> news:eq****************@TK2MSFTNGP14.phx.gbl...
>>> "Cowboy (Gregory A. Beamer) - MVP"
>>> <No************@comcast.netNoSpamM> wrote in message
>>> news:4C**********************************@microsof t.com...
>>>> Exchange, by default, only relays from the domain it sits on. There
>>>> are two
>>>> options:
>>>>
>>>> 1. Allow your domain (yahoo.com) to be added.
>>>> 2. Allow all relays from the IP address of the web server (better
>>>> option,
>>>> for security).
>>>
>>> But why is CDONTS working?
>>>
>>> Is it being sent from the Windows 2003 server instead of the
>>> Exchange Server?
>>>
>>> If this is the case, how do I tell System.Web.Mail to send it the
>>> same way?
>>>
>>> Which would be better?
>>>
>>> Thanks,
>>>
>>> Tom
>>>
>>>>
>>>>
>>>> ---
>>>>
>>>> Gregory A. Beamer
>>>> MVP; MCP: +I, SE, SD, DBA
>>>>
>>>> ***************************
>>>> Think Outside the Box!
>>>> ***************************
>>>>
>>>>
>>>> "tshad" wrote:
>>>>
>>>>> I have a W2003 server running my website and I am trying to set up
>>>>> my pages
>>>>> to send email using System.Web.Mail.
>>>>>
>>>>> I have pages running on this machine using CDONTS that work fine.
>>>>>
>>>>> I am using our exchange server to send the mail but am getting an
>>>>> "Unable to
>>>>> relay" message. But the "From" name is my email address, which is
>>>>> obviously
>>>>> on our exchange server, so there is no relay.
>>>>>
>>>>> The message I get back is:
>>>>>
>>>>> "The server rejected one or more recipient addresses. The server
>>>>> response
>>>>> was: 550 5.7.1 Unable to relay for ts**********@yahoo.com"
>>>>>
>>>>> My trace is showing:
>>>>>
>>>>> "Could not access 'CDO.Message' object.
>>>>> 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 ASP.emailtest_aspx.Page_Load(Object sender, EventArgs e) in
>>>>> C:\Inetpub\wwwroot\payrollworkshop\Development\ema iltest.aspx:line
>>>>> 15
>>>>> at System.Web.UI.Control.OnLoad(EventArgs e)
>>>>> at System.Web.UI.Control.LoadRecursive()
>>>>> at System.Web.UI.Page.ProcessRequestMain()"
>>>>>
>>>>> Am I missing something here?
>>>>>
>>>>> The ts*********@yahoo.com is my personal email.
>>>>>
>>>>> Thanks,
>>>>>
>>>>> Tom
>>>>>
>>>>>
>>>>>
>>>
>>>
>>
>>
>
>



Nov 19 '05 #11
re:
Try using "localhost", instead of "127.0.0.1" That worked.


Good! Glad to see you're up and running now!

re: Why didn't 127.0.0.1?
No idea...

On my server, neither "localhost" nor "127.0.0.1" work.
I *have* to use my domain name...or it doesn't work.
Also, why didn't I have to do all this to get CDONTS to work?
They want us to be on our toes ?

;-)


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
=====================

"tshad" <ts**********@ftsolutions.com> wrote in message
news:uf*************@TK2MSFTNGP12.phx.gbl... "Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:Oi**************@TK2MSFTNGP10.phx.gbl...
re:
I looked and it was already set up and running.
It was set up with the name "Simple Mail Transfer Protocol (SMTP)".


Good! You're halfway there!

re:
SmtpMail.SmtpServer = "127.0.0.1"


Try using "localhost", instead of "127.0.0.1"


That worked.

Why didn't 127.0.0.1?

Also, why didn't I have to do all this to get CDONTS to work?

Thanks,

Tom

Also, you could try to use the default domain name
for the smtp server ( Open the smtp server's properties
in the IIS MMC, and see what the default domain name is.
Then, use *that* name, instead of "127.0.0.1" or "localhost")

Warning: some mail servers reject single-name smtp server
aliases. They only accept full domain names ( domainname.com ).

Do you have a registered domain name for your server ?

If you do, just create a new smtp domain,
and assign it your domain name.

Not to worry, there won't be a name conflict.

re:
It still doesn't work. I don't want to change the name as I don't know
how that would affect the other programs using CDONTS.


You don't have to change the name of the existing smtp server.

You can create as many aliases as you want to.
Open the IIS MMC, select the default smtp server,
expand the tree, select "Domain", right-click "Domains",
and select "New" --> Domain.

Then configure it as you see fit.

The current domain will continue to work as usual.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
=====================

"tshad" <ts**********@ftsolutions.com> wrote in message
news:uo**************@TK2MSFTNGP10.phx.gbl...
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:ef**************@TK2MSFTNGP10.phx.gbl...
re:
> I tried setting it to:
> SmtpMail.SmtpServer = "127.0.0.1"
> But that didn't work.

Did you set up the smtp server service ?
If you didn't, that can't work.

I looked and it was already set up and running.

It was set up with the name "Simple Mail Transfer Protocol (SMTP)".

It was logged on as a Local System Account.
I set up an smtp service, and assigned it the same
name as my domain name, and it works all the time.

Click your Start button, hit the "Help and Support" link,
and search for "install smtp service" when the Help and
Support Center opens.

When the search ends, You should see several links
with the information you need to setup the smtp service.

Follow the instructions...

Hint: you don't actually need to run the POP3
service, although if you want to, you certainly can.

I don't need need POP3, I only need to be able to send from my Web
Server.
What I did is that, after installing the POP3 and SMTP services,
since I didn't want to run a full mail server, I uninstalled the
POP3 service, *but left the SMTP service running*.

Let us know if you run into trouble doing that.

It still doesn't work. I don't want to change the name as I don't know
how that would affect the other programs using CDONTS.

Tom


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
=====================

"tshad" <ts**********@ftsolutions.com> wrote in message
news:u9*************@TK2MSFTNGP09.phx.gbl...
> "tshad" <ts**********@ftsolutions.com> wrote in message
> news:ek*************@TK2MSFTNGP12.phx.gbl...
>> "Juan T. Llibre" <no***********@nowhere.com> wrote in message
>> news:OK**************@tk2msftngp13.phx.gbl...
>>> You could setup an smtp service in your W2K3 Server,
>>> and use *that* to forward your emails, instead of
>>> using your Exchange Server to relay the emails.
>>>
>>> It's pretty straightforward...and works like a charm.
>>
>> If CDONTS is working, would it already be doing that?
>>
>> Also, what would I put in my SmtpMail.SmtpServer field?
>
> I tried setting it to:
>
> SmtpMail.SmtpServer = "127.0.0.1"
>
> But that didn't work.
>
> Tom
>>
>> Thanks,
>>
>> Tom
>>>
>>>
>>>
>>> Juan T. Llibre
>>> ASP.NET MVP
>>> http://asp.net.do/foros/
>>> Foros de ASP.NET en Español
>>> =====================
>>>
>>> "tshad" <ts**********@ftsolutions.com> wrote in message
>>> news:eq****************@TK2MSFTNGP14.phx.gbl...
>>>> "Cowboy (Gregory A. Beamer) - MVP"
>>>> <No************@comcast.netNoSpamM> wrote in message
>>>> news:4C**********************************@microsof t.com...
>>>>> Exchange, by default, only relays from the domain it sits on.
>>>>> There are two
>>>>> options:
>>>>>
>>>>> 1. Allow your domain (yahoo.com) to be added.
>>>>> 2. Allow all relays from the IP address of the web server (better
>>>>> option,
>>>>> for security).
>>>>
>>>> But why is CDONTS working?
>>>>
>>>> Is it being sent from the Windows 2003 server instead of the
>>>> Exchange Server?
>>>>
>>>> If this is the case, how do I tell System.Web.Mail to send it the
>>>> same way?
>>>>
>>>> Which would be better?
>>>>
>>>> Thanks,
>>>>
>>>> Tom
>>>>
>>>>>
>>>>>
>>>>> ---
>>>>>
>>>>> Gregory A. Beamer
>>>>> MVP; MCP: +I, SE, SD, DBA
>>>>>
>>>>> ***************************
>>>>> Think Outside the Box!
>>>>> ***************************
>>>>>
>>>>>
>>>>> "tshad" wrote:
>>>>>
>>>>>> I have a W2003 server running my website and I am trying to set
>>>>>> up my pages
>>>>>> to send email using System.Web.Mail.
>>>>>>
>>>>>> I have pages running on this machine using CDONTS that work fine.
>>>>>>
>>>>>> I am using our exchange server to send the mail but am getting an
>>>>>> "Unable to
>>>>>> relay" message. But the "From" name is my email address, which
>>>>>> is obviously
>>>>>> on our exchange server, so there is no relay.
>>>>>>
>>>>>> The message I get back is:
>>>>>>
>>>>>> "The server rejected one or more recipient addresses. The server
>>>>>> response
>>>>>> was: 550 5.7.1 Unable to relay for ts**********@yahoo.com"
>>>>>>
>>>>>> My trace is showing:
>>>>>>
>>>>>> "Could not access 'CDO.Message' object.
>>>>>> 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 ASP.emailtest_aspx.Page_Load(Object sender, EventArgs e) in
>>>>>> C:\Inetpub\wwwroot\payrollworkshop\Development\ema iltest.aspx:line
>>>>>> 15
>>>>>> at System.Web.UI.Control.OnLoad(EventArgs e)
>>>>>> at System.Web.UI.Control.LoadRecursive()
>>>>>> at System.Web.UI.Page.ProcessRequestMain()"
>>>>>>
>>>>>> Am I missing something here?
>>>>>>
>>>>>> The ts*********@yahoo.com is my personal email.
>>>>>>
>>>>>> Thanks,
>>>>>>
>>>>>> Tom
>>>>>>
>>>>>>
>>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>



Nov 19 '05 #12

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

Similar topics

4
by: web_design | last post by:
I put this together from some other scripts I am using on a site. I'm trying to make a better email hiding script. It isn't working. Also, it causes Internet Explorer 6 SP2 to block the script...
0
by: ng1 | last post by:
Hello , I am writing in order to get your valuable help . I have been working on a job which involves sending emails thorough Access. I created a form , a very simple one with a few fields to fill...
3
by: Erik Johnson | last post by:
THE GOAL: I need to send an email with a simple ASCII text body and an attached HTML file. I have scripts that send basic emails via the smtplib module that don't have any attachements and that...
2
by: Danny Smith | last post by:
Hi folks, I'm having problems with my PHP form handler. It used to work correctly, but now for some reason its not. I'm hoping someone here could take a look and tell me where I might have gone...
8
by: shapper | last post by:
Hello, I am trying to send an email using Asp.Net 2.0. I am getting the following error: System.Net.Mail.SmtpFailedRecipientException: Mailbox unavailable. The server response was: No such...
20
by: alice | last post by:
Can anyone tell me why this code won't work? I've saved it as mail.php, and have a form on a web page with action="mail.php" in the html. I've gotten this to work before on other pages I've worked...
4
by: MOHSEN KASHANI | last post by:
Hi, I am working on an intranet web application and need to be able to send email through the application. I have to use an Exchange server to do this. Can you tell me what I need to set up, what...
1
by: robnoper | last post by:
XP SP2, access and outlook 2003 I have a form with 3 command buttons on that when one is pressed it opens up a html email for the user to send. Two of the emails work fine and open with the full...
31
by: happyse27 | last post by:
Hi All, I am trying for weeks how to send email from windows pc, which from my gmail account to my hotmail account. Using net::smtp module sending email failed,Kindly assist. (for the item d it...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.