Sending mail to our mailserver with ASP Page problem

J

John Peters

we have our web server in the DMZ and an ASP page with code to send us an
email but it gets slow to get the mail at times up to a full day. Can anyone
help me out point me in a direction to look for the delay?

<!--METADATA TYPE="typelib" UUID="CD000000-8B95-11D1-82DB-00C04FB1625D"
NAME="CDO for Windows 2000 Library" -->
<!--METADATA TYPE="typelib" UUID="00000205-0000-0010-8000-00AA006D2EA4"
NAME="ADODB Type Library" -->

<%
Set cdoConfig = CreateObject("CDO.Configuration")
With cdoConfig.Fields
.Item(cdoSendUsingMethod) = cdoSendUsingPort
.Item(cdoSMTPServer) = "192.168.0.2"
.Update
End With

Set cdoMessage = CreateObject("CDO.Message")
With cdoMessage
Set .Configuration = cdoConfig
.From = "(e-mail address removed)"
.To = "(e-mail address removed)"
.Subject = "Company - Password Request"
.TextBody = "Your Company login password is blah blah blah"
.Send
End With
%>
 
T

Thomas A. Rowe

Suggest you post this to the Windows Server newsgroup or the newsgroup for the mail server
application your are running on the server.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================
 
M

Mike Mueller

You may get better performance if you added two lines at the very end of the
code:
Set cdoConfig = Nothing
Set cdoMessage = Nothing

IIRC, any time you set an object you should clean it up by reassigning to
nothing
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top