These my asp codes. <% 'Sends an email Dim mail Set mail = Server.CreateObject("CDO.Message") mail.To = Request.Form("To") mail.From = Request.Form("From") mail.Subject = Request.Form("Subject") mail.TextBody = Request.Form("Body") mail.Send() Response.Write("Mail Sent!") Destroy the mail object! Set mail = nothing %> This my html form <form method="POST" action="asa.asp"> To <input type="text" name="To"/> <br /> From <input type="text" name="From"/> <br /> Subject <input type="text" name="Subject"/> <br /> Body <textarea name="Body" rows="5" cols="20" wrap="physical" > </textarea> <input type="submit" /> </form> I added to my own hosting ,asp codes and html form.But just dont work.I would like to users send me mails by this method.How can I do this?
first question is, do you have the iis mail server running? if so then look in the inetpub/badmail directory to see if your messages have ended up there. If so they should have error codes to tell you what's wrong
I'd suggest you replace some characters before sending also consider that you might wanna send an HTML mail here are some samples http://www.webmasters.am/forum/forumdisplay.php?f=16
Check with your host over what code you can use in creating the e-mail, one alternative is: Dim mail Set mail = Server.CreateObject("CDONTS.NewMail")
The question here is, does you hosting service provide Cdonts, Aspmail or any other email component? Most ASP servers have not installed these components to prevent spamming, unless the client request them if you are on a paid service.
Check with ur hosting company , the mail component they are using . U have to use that component only to send the mail