How do I send mail from a mailform<BR>I tried the CDONTS.NewMail<BR><BR>But its not working<BR><BR>any suggestions<BR>anyway thanx all
You said CDONTs is not working. What errors or problems are you having? What code are you using?
<%<BR> Dim objMail<BR> Set objMail = Server.CreateObject("CDONTS.NewMail")<BR> <BR> objMail.From = "firstname.lastname@example.org"<BR> objMail.Subject = "How TO send email with CDONTS"<BR> objMail.To = "email@example.com"<BR> objMail.Body = "This is an email message" & vbcrlf&_ <BR> "with CDONTS." & vbcrlf&_<BR> "It is really easy. " <BR> objMail.Send<BR> <BR> Response.write("Mail was Sent")<BR> set objMail = nothing<BR>%>
Do you get an error? Is a .eml file created in your Mailroot directory? Do you have CDONTS installed?
The mails I have sent are all in the folder but not going into my email accounts...<BR><BR>
If they're in the queue, they're waiting to go out. Try starting and stopping the SMTP Service
Do I have to do this settings in SMTP Service all the time<BR><BR>Thank you very much James<BR>
You won't have to manually start it everytime but if you're going to be using CDONTS, set the service to auto start.
Well I want to know weather I can use this method for mailform in my web site....<BR><BR>well from anymachine...I can use, is it not necesary to be an NT Family....<BR><BR>
If you mean <form method="mailto" then no, you can't use CDONTs. You'd have to use Front Page Server Extensions, and if not NT/ASP, I don't know what you'd use.