Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

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 = "wz9919@hotmail.com"
.CC = "wz9919@yahoo.com"
.From = "wz9919@sympatico.ca"
.Subject = "Testing"
.TextBody = "Testing"
.Send
End With
Set iMsg=Nothing
Set iConf=Nothing
Set Flds=Nothing


Report this thread to moderator Post Follow-up to this message
Old Post
Alex
09-24-04 08:55 PM


Re: Sending email problem with Windows 2000 professional
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" <Alex@discussions.microsoft.com> wrote in message
news:0CB00A4E-E74F-4055-BF43-A9BCD67F20BB@microsoft.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 = "wz9919@hotmail.com"
> .CC = "wz9919@yahoo.com"
> .From = "wz9919@sympatico.ca"
> .Subject = "Testing"
> .TextBody = "Testing"
> .Send
> End With
> Set iMsg=Nothing
> Set iConf=Nothing
> Set Flds=Nothing
>



Report this thread to moderator Post Follow-up to this message
Old Post
Ray Costanzo [MVP]
09-24-04 08:55 PM


Re: Sending email problem with Windows 2000 professional
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 sor
t?
> Is this machine authorized to relay mail in your network?
>
> Ray at work
>
> "Alex" <Alex@discussions.microsoft.com> wrote in message
> news:0CB00A4E-E74F-4055-BF43-A9BCD67F20BB@microsoft.com... 
>
>
>

Report this thread to moderator Post Follow-up to this message
Old Post
Alex
09-24-04 08:55 PM


Re: Sending email problem with Windows 2000 professional
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" <Alex@discussions.microsoft.com> wrote in message
news:C7233013-02CD-44CA-9E1D-144480AD9D5A@microsoft.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:
> 



Report this thread to moderator Post Follow-up to this message
Old Post
Ray Costanzo [MVP]
09-24-04 08:55 PM


Re: Sending email problem with Windows 2000 professional
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 th
e
> 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" <Alex@discussions.microsoft.com> wrote in message
> news:C7233013-02CD-44CA-9E1D-144480AD9D5A@microsoft.com... 
>
>
>

Report this thread to moderator Post Follow-up to this message
Old Post
Alex
09-25-04 01:55 AM


Re: Sending email problem with Windows 2000 professional
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" <Alex@discussions.microsoft.com> wrote in message
news:6DBDEC40-7B9D-4408-8E0A-D0E975B9185D@microsoft.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:
> 



Report this thread to moderator Post Follow-up to this message
Old Post
Ray Costanzo [MVP]
09-25-04 08:58 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

ASP archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:25 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.