Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

localhost smtp asp

Status
Not open for further replies.

mcode12

Programmer
Aug 8, 2007
25
GB
I run the script below on my XP machine in the local host and nothing happens. No error messages and no emails sent to my email


sch = "
Set cdoConfig = CreateObject("CDO.Configuration")

With cdoConfig.Fields
.Item(sch & "sendusing") = 2 ' cdoSendUsingPort
.Item(sch & "smtpserver") = "127.0.0.1"
.update
End With

Set cdoMessage = CreateObject("CDO.Message")

With cdoMessage
Set .Configuration = cdoConfig
.From = "me@mydomain"
.To = "me@mydomain.com"
.Subject = "Sample CDO Message"
.TextBody = "This is a test for CDO.message"
.Send
End With

Set cdoMessage = Nothing
Set cdoConfig = Nothing

The smtp is set up to relay. Anyone any ideas?
 
You typically set sendusing to 2 and smtpserver only if you are using an external mail server machine on your network.
 
the emails are getting caught up in the queue folder.

I reinstalled the smtp server but this is still happening.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top