Discussion Locked

sending of form results through e-mail

0 helpful
17 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have had this problem for quite some time and I hope someone from techrepublic can solve my problem.. I have a form set up at a website and i need to send the results of the form directly through e-mail. I do not want to use mailto: as it is a very tedious process. cansomebody help me???
prajwal
prajwal17@hotmail.com

17 replies

by notyy

if you use iis and have smtp properly installed on your sever,simply use "CDONTS.NewMail" a sample code like below:
Set objNewMail = CreateObject("CDONTS.NewMail")
strSVEmail="destination email address"
objNewMail.From = "source email address"
objNewMail.To = strSVEmail
objNewMail.BodyFormat=0
objNewMail.MailFormat=0
objNewMail.Subject = " "& strSubject 'your subject
objNewMail.Body = strBody 'your mail body generated by the form you submitted
objNewMail.Send
Set objNewMail=Nothing

by keith.hall1

If you don't have an NT service provider or if they restrict the type of server side scripts running then other alternative is too see whether your ISP offers a formmail script. You will need to find out what name it is and what parameters it takes,but this should take all your form info and send it to you as an email.
Usually your form will need to start with this:

by hokum

You can use history object like follows:

,
where X is number in history array. 1 is last link, 2 is second and so on.

, - links forhistory browsing.

by navin-dulani

well you have been advised to use cdonts object but personally i found JMail component available at www.15seconds.com the best ... with a lot more features and best of all its free.
just download this component and go thru the docs. for an form to email example.
navin

by support

The CDONTS is fully documented on Microsofts web site. Just do a search on CDONTS and review the results

by rodsherer

If your website was done with Frontpage, then you can set up a form on one of the pages and have it sent to any e-mail address you want. BUT, your ISP has to have Frontpage Extension compatability for this to work.

Another way to do it, is to have the form compile all the information gathered by the web site into a file on the server. I have never done this, so I can't give any specifics on how it is done, I just know that it can be done.

by p_veer

Hi go for JMS,where you can have certain methods,If you are going for Java Based application,you can mailer,certain type of bean,where you can set username,email,servername.If it is a Java Based application,then,it is best if you go for JMS,JavaBeans.

Regards,
Prashanth Veer.

This discussion is closed to new replies.