473,404 Members | 2,137 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,404 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 1899
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...
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: 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
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
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
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,...
0
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...

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.