Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

sending email containing info from a form

Hello all! Does someone know how to automatically send an email containing all the information extracted from a form. The idea is to use javascript or, better yet, VBScript/ASP.

We're trying to develop a website that features a form which visitors will fill up. All the information entered will be emailed, sort of a feedback. The site visitors need not know how the emailing was done. It just has to be done automatically once the visitor presses "Submit".



Thanks in advance!

Melanie


Comments

  • Well yes, but there is alot that needs to be done to do it with ASP, First CDONTS needs to be setup with IIS and there also has to be an email gateway setup on the server. Then thsi would do the email..



    set objmail = server.createobject("cdonts.newmail")

    objmail.to = "someone@somewhere.com"

    objmail.from = "you@somewhere.comm"

    objmail.subject = "Hello"

    objmail.body = "Hi how are you?"

    objmail.send



    Another option is that outlook is intalled on the server, you can do this.



    Set objmail = server.createobject("outlook.application")



    Set mymail = objmail.CreateItem(olMailItem)

    mymail.To = "kjh@kln.com"

    mymail.Body = "Hello"

    mymail.Send

    set mymail = nothing

    set objmail = nothing







    Hope that helps





    : Hello all! Does someone know how to automatically send an email containing all the information extracted from a form. The idea is to use javascript or, better yet, VBScript/ASP.

    : We're trying to develop a website that features a form which visitors will fill up. All the information entered will be emailed, sort of a feedback. The site visitors need not know how the emailing was done. It just has to be done automatically once the visitor presses "Submit".

    :

    : Thanks in advance!

    : Melanie

    :






Sign In or Register to comment.