Hi,
I want to write email application(just sending emails) in asp, for that i m using cdosys,
I want to know whether my smtp(virtual server) is running fine or not, but i dont know how to do that, well in IIS it is running. but don't know how to test it.
Further, when i write an email code given below, it dosen't show me error but I do not receive any mail too.
The address where i am sending mail is on different mail server,
Please help me out..
<%
Dim ObjSendMail
Dim iConf
Dim Flds
Set ObjSendMail = Server.CreateObject("CDO.Message")
Set iConf = CreateObject("CDO.Configuration")
Set Flds = iConf.Fields
Flds("http://schemas.microsoft.com/cdo/configuration/sendusing") = 1
'**** Path below may need to be changed if it is not correct
Flds("http://schemas.microsoft.com/cdo/configuration/smtpserverpickupdirectory") = "c:\inetpub\mailroot\pickup"
Flds.Update
Set ObjSendMail.Configuration = iConf
ObjSendMail.To = "
[email protected]"
ObjSendMail.Subject = "this is the subject"
ObjSendMail.From = "
[email protected]"
' we are sending a text email.. simply switch the comments around to send an html email instead
'ObjSendMail.HTMLBody = "this is the body"
ObjSendMail.TextBody = "this is the body"
ObjSendMail.Send
Set ObjSendMail = Nothing
%>