472,965 Members | 1,970 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Sending email problem with Windows 2000 professional

I wrote an asp program to send email. I set SMTP as 127.0.0.1 and it worked
well in Windows 2000 server but not in Windows 2000 Professional. What is
different between server and professional. My code is below:

Set iMsg = Server.CreateObject("CDO.Message")
Set iConf = Server.CreateObject("CDO.Configuration")
Set Flds = iConf.Fields
Flds("cdoSendUsingMethod") = cdoSendUsingPort
Flds("cdoSMTPServer") = "127.0.0.1"
Flds("cdoSMTPServerPort") = 25
Flds("cdoSMTPAuthenticate") = cdoAnonymous ' 0
Flds.Update
With iMsg
Set .Configuration = iConf
.To = "wz****@hotmail.com"
.CC = "wz****@yahoo.com"
.From = "wz****@sympatico.ca"
.Subject = "Testing"
.TextBody = "Testing"
.Send
End With
Set iMsg=Nothing
Set iConf=Nothing
Set Flds=Nothing

Jul 19 '05 #1
5 1880
127.0.0.1 is the loopback address of the local machine, meaning you're
saying Flds("cdoSMTPServer") = [This computer that is running this script.]

Do you have SMTP installed on this machine?
In what way does this "not work" for you? Do you get an error of some sort?
Is this machine authorized to relay mail in your network?

Ray at work

"Alex" <Al**@discussions.microsoft.com> wrote in message
news:0C**********************************@microsof t.com...
I wrote an asp program to send email. I set SMTP as 127.0.0.1 and it worked
well in Windows 2000 server but not in Windows 2000 Professional. What is
different between server and professional. My code is below:

Set iMsg = Server.CreateObject("CDO.Message")
Set iConf = Server.CreateObject("CDO.Configuration")
Set Flds = iConf.Fields
Flds("cdoSendUsingMethod") = cdoSendUsingPort
Flds("cdoSMTPServer") = "127.0.0.1"
Flds("cdoSMTPServerPort") = 25
Flds("cdoSMTPAuthenticate") = cdoAnonymous ' 0
Flds.Update
With iMsg
Set .Configuration = iConf
.To = "wz****@hotmail.com"
.CC = "wz****@yahoo.com"
.From = "wz****@sympatico.ca"
.Subject = "Testing"
.TextBody = "Testing"
.Send
End With
Set iMsg=Nothing
Set iConf=Nothing
Set Flds=Nothing

Jul 19 '05 #2
I installed IIS 5.0 and SMTP service. I could get the email when I ran this
asp in server and but I couldn't get it when I ran it in professional.
Actually I didn't get any errors and I don't know if it is authorized to
relay emails. But I could get emails if I ran asp.net program to send email
out.

Alex
"Ray Costanzo [MVP]" wrote:
127.0.0.1 is the loopback address of the local machine, meaning you're
saying Flds("cdoSMTPServer") = [This computer that is running this script.]

Do you have SMTP installed on this machine?
In what way does this "not work" for you? Do you get an error of some sort?
Is this machine authorized to relay mail in your network?

Ray at work

"Alex" <Al**@discussions.microsoft.com> wrote in message
news:0C**********************************@microsof t.com...
I wrote an asp program to send email. I set SMTP as 127.0.0.1 and it worked
well in Windows 2000 server but not in Windows 2000 Professional. What is
different between server and professional. My code is below:

Set iMsg = Server.CreateObject("CDO.Message")
Set iConf = Server.CreateObject("CDO.Configuration")
Set Flds = iConf.Fields
Flds("cdoSendUsingMethod") = cdoSendUsingPort
Flds("cdoSMTPServer") = "127.0.0.1"
Flds("cdoSMTPServerPort") = 25
Flds("cdoSMTPAuthenticate") = cdoAnonymous ' 0
Flds.Update
With iMsg
Set .Configuration = iConf
.To = "wz****@hotmail.com"
.CC = "wz****@yahoo.com"
.From = "wz****@sympatico.ca"
.Subject = "Testing"
.TextBody = "Testing"
.Send
End With
Set iMsg=Nothing
Set iConf=Nothing
Set Flds=Nothing


Jul 19 '05 #3
Is the e-mail still sitting in \inetpub\mailroot\queue? Take a look in the
application event log to see if relaying was denied. Did you setup a
smarthost or anything in your SMTP settings? If so, make sure the target
server allows relaying from your machine's IP.

Ray at work

"Alex" <Al**@discussions.microsoft.com> wrote in message
news:C7**********************************@microsof t.com...
I installed IIS 5.0 and SMTP service. I could get the email when I ran
this
asp in server and but I couldn't get it when I ran it in professional.
Actually I didn't get any errors and I don't know if it is authorized to
relay emails. But I could get emails if I ran asp.net program to send
email
out.

Alex
"Ray Costanzo [MVP]" wrote:
127.0.0.1 is the loopback address of the local machine, meaning you're
saying Flds("cdoSMTPServer") = [This computer that is running this
script.]

Do you have SMTP installed on this machine?
In what way does this "not work" for you? Do you get an error of some
sort?
Is this machine authorized to relay mail in your network?

Ray at work

"Alex" <Al**@discussions.microsoft.com> wrote in message
news:0C**********************************@microsof t.com...
>I wrote an asp program to send email. I set SMTP as 127.0.0.1 and it
>worked
> well in Windows 2000 server but not in Windows 2000 Professional. What
> is
> different between server and professional. My code is below:
>
> Set iMsg = Server.CreateObject("CDO.Message")
> Set iConf = Server.CreateObject("CDO.Configuration")
> Set Flds = iConf.Fields
> Flds("cdoSendUsingMethod") = cdoSendUsingPort
> Flds("cdoSMTPServer") = "127.0.0.1"
> Flds("cdoSMTPServerPort") = 25
> Flds("cdoSMTPAuthenticate") = cdoAnonymous ' 0
> Flds.Update
> With iMsg
> Set .Configuration = iConf
> .To = "wz****@hotmail.com"
> .CC = "wz****@yahoo.com"
> .From = "wz****@sympatico.ca"
> .Subject = "Testing"
> .TextBody = "Testing"
> .Send
> End With
> Set iMsg=Nothing
> Set iConf=Nothing
> Set Flds=Nothing
>


Jul 19 '05 #4
I didn't see any deny message in the appliaction log and i didn't setup
smarhost or other in my SMTP. I don't know why the target email server
disallow relaying from my computer. But it is different that my windows 2000
server has public IP but professional doesnt have.

Alex

"Ray Costanzo [MVP]" wrote:
Is the e-mail still sitting in \inetpub\mailroot\queue? Take a look in the
application event log to see if relaying was denied. Did you setup a
smarthost or anything in your SMTP settings? If so, make sure the target
server allows relaying from your machine's IP.

Ray at work

"Alex" <Al**@discussions.microsoft.com> wrote in message
news:C7**********************************@microsof t.com...
I installed IIS 5.0 and SMTP service. I could get the email when I ran
this
asp in server and but I couldn't get it when I ran it in professional.
Actually I didn't get any errors and I don't know if it is authorized to
relay emails. But I could get emails if I ran asp.net program to send
email
out.

Alex
"Ray Costanzo [MVP]" wrote:
127.0.0.1 is the loopback address of the local machine, meaning you're
saying Flds("cdoSMTPServer") = [This computer that is running this
script.]

Do you have SMTP installed on this machine?
In what way does this "not work" for you? Do you get an error of some
sort?
Is this machine authorized to relay mail in your network?

Ray at work

"Alex" <Al**@discussions.microsoft.com> wrote in message
news:0C**********************************@microsof t.com...
>I wrote an asp program to send email. I set SMTP as 127.0.0.1 and it
>worked
> well in Windows 2000 server but not in Windows 2000 Professional. What
> is
> different between server and professional. My code is below:
>
> Set iMsg = Server.CreateObject("CDO.Message")
> Set iConf = Server.CreateObject("CDO.Configuration")
> Set Flds = iConf.Fields
> Flds("cdoSendUsingMethod") = cdoSendUsingPort
> Flds("cdoSMTPServer") = "127.0.0.1"
> Flds("cdoSMTPServerPort") = 25
> Flds("cdoSMTPAuthenticate") = cdoAnonymous ' 0
> Flds.Update
> With iMsg
> Set .Configuration = iConf
> .To = "wz****@hotmail.com"
> .CC = "wz****@yahoo.com"
> .From = "wz****@sympatico.ca"
> .Subject = "Testing"
> .TextBody = "Testing"
> .Send
> End With
> Set iMsg=Nothing
> Set iConf=Nothing
> Set Flds=Nothing
>


Jul 19 '05 #5
Well, when you an admin who is at least not totally incompetent, he will not
allow relaying from any IP but those he explicitly specifies. So, chances
are the e-mail is being denied by your Internet-outbound SMTP server. Ask
your admin if SMTP relaying is permitted by your inhouse SMTP server -
perhaps your Exchange server.

Ray at home

"Alex" <Al**@discussions.microsoft.com> wrote in message
news:6D**********************************@microsof t.com...
I didn't see any deny message in the appliaction log and i didn't setup
smarhost or other in my SMTP. I don't know why the target email server
disallow relaying from my computer. But it is different that my windows
2000
server has public IP but professional doesnt have.

Alex

"Ray Costanzo [MVP]" wrote:
Is the e-mail still sitting in \inetpub\mailroot\queue? Take a look in
the
application event log to see if relaying was denied. Did you setup a
smarthost or anything in your SMTP settings? If so, make sure the target
server allows relaying from your machine's IP.

Ray at work

"Alex" <Al**@discussions.microsoft.com> wrote in message
news:C7**********************************@microsof t.com...
>I installed IIS 5.0 and SMTP service. I could get the email when I ran
>this
> asp in server and but I couldn't get it when I ran it in professional.
> Actually I didn't get any errors and I don't know if it is authorized
> to
> relay emails. But I could get emails if I ran asp.net program to send
> email
> out.
>
> Alex
>
>
> "Ray Costanzo [MVP]" wrote:
>
>> 127.0.0.1 is the loopback address of the local machine, meaning you're
>> saying Flds("cdoSMTPServer") = [This computer that is running this
>> script.]
>>
>> Do you have SMTP installed on this machine?
>> In what way does this "not work" for you? Do you get an error of some
>> sort?
>> Is this machine authorized to relay mail in your network?
>>
>> Ray at work
>>
>> "Alex" <Al**@discussions.microsoft.com> wrote in message
>> news:0C**********************************@microsof t.com...
>> >I wrote an asp program to send email. I set SMTP as 127.0.0.1 and it
>> >worked
>> > well in Windows 2000 server but not in Windows 2000 Professional.
>> > What
>> > is
>> > different between server and professional. My code is below:
>> >
>> > Set iMsg = Server.CreateObject("CDO.Message")
>> > Set iConf = Server.CreateObject("CDO.Configuration")
>> > Set Flds = iConf.Fields
>> > Flds("cdoSendUsingMethod") = cdoSendUsingPort
>> > Flds("cdoSMTPServer") = "127.0.0.1"
>> > Flds("cdoSMTPServerPort") = 25
>> > Flds("cdoSMTPAuthenticate") = cdoAnonymous ' 0
>> > Flds.Update
>> > With iMsg
>> > Set .Configuration = iConf
>> > .To = "wz****@hotmail.com"
>> > .CC = "wz****@yahoo.com"
>> > .From = "wz****@sympatico.ca"
>> > .Subject = "Testing"
>> > .TextBody = "Testing"
>> > .Send
>> > End With
>> > Set iMsg=Nothing
>> > Set iConf=Nothing
>> > Set Flds=Nothing
>> >
>>
>>
>>


Jul 19 '05 #6

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

Similar topics

15
by: Sven Templin | last post by:
Hello all, our configuration is as following described: - OS: Windows 2000 - Apache server 1.3 - Php 3.8 - MS outlook client 2000 _and_ no SMTP server available in the whole intranet.
3
by: VB Programmer | last post by:
My company has it's own webserver, which is going to host our ASP.NET web application. We want the website to be able to send out emails. 1. What do I need on the server so that it has the...
22
by: EP | last post by:
When running my asp.net hosting service (asp.net without IIS), on server 2003 with IIS not installed, I get the following when trying to process a request. "System.DllNotFoundException: Unable to...
26
by: Massimo Zaccarin | last post by:
ok, I know that I have to use the System.Web.Mail.SmtpMail class, but I've read from...
1
by: Eric Sheu | last post by:
Greetings, I have been searching the web like mad for a solution to my SMTP problem. I am using Windows Server 2003 and ASP.NET 2.0 w/ C# to send out e-mails from a web site I have created to...
7
by: D. Patrick | last post by:
I need to duplicate the functionality of a java applet, and how it connects to a remote server. But, I don't have the protocol information or the java source code which was written years ago. ...
1
by: Manu | last post by:
Hi, To get the USERNAME of all process running in local/remote system I am using the WTSOpenServer and WTSEnumerateProcesses API's but when I invoke the WTSOpenServer in Windows 200...
14
by: Developer | last post by:
Hello All, i have recently installed VS2005 and was trying to install SQL sever 2000. I have Win XP' SP2. But when I tried installing, it only installed client tools and not the database. Can...
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.