automatically sending email from asp page

Discussion in 'ASP General' started by AMC, May 25, 2004.

  1. AMC

    AMC Guest

    Hi,

    I have a page that allows user input. On click of the submit button I call a
    javascript function that verifies that all of the fields are filled out and
    then submits the form. I need to add code after the verification that
    creates and sends an email. I know how to do this in VBscript, but don't
    know how to call a vbscript function from a jscript function (is this even
    possible?). Any help would be appreciated. I don't want the users email
    client to open, everything must be done in code.

    Thanks,
    AMC
     
    AMC, May 25, 2004
    #1
    1. Advertising

  2. You do it in VBScript, on the server side, after the form gets submitted.

    --
    Aaron Bertrand
    SQL Server MVP
    http://www.aspfaq.com/


    "AMC" <> wrote in message
    news:...
    > Hi,
    >
    > I have a page that allows user input. On click of the submit button I call
    > a
    > javascript function that verifies that all of the fields are filled out
    > and
    > then submits the form. I need to add code after the verification that
    > creates and sends an email. I know how to do this in VBscript, but don't
    > know how to call a vbscript function from a jscript function (is this even
    > possible?). Any help would be appreciated. I don't want the users email
    > client to open, everything must be done in code.
    >
    > Thanks,
    > AMC
    >
    >
     
    Aaron Bertrand [MVP], May 25, 2004
    #2
    1. Advertising

  3. AMC

    Jeff Cochran Guest

    On Mon, 24 May 2004 19:40:59 -0700, "AMC" <> wrote:

    >I have a page that allows user input. On click of the submit button I call a
    >javascript function that verifies that all of the fields are filled out and
    >then submits the form. I need to add code after the verification that
    >creates and sends an email. I know how to do this in VBscript, but don't
    >know how to call a vbscript function from a jscript function (is this even
    >possible?). Any help would be appreciated. I don't want the users email
    >client to open, everything must be done in code.


    FAQ:

    How do I send e-mail from ASP?
    http://www.aspfaq.com/show.asp?id=2119

    Jeff
     
    Jeff Cochran, May 25, 2004
    #3
  4. AMC

    AMC Guest

    Thanks

    "Aaron Bertrand [MVP]" <> wrote in message
    news:...
    > You do it in VBScript, on the server side, after the form gets submitted.
    >
    > --
    > Aaron Bertrand
    > SQL Server MVP
    > http://www.aspfaq.com/
    >
    >
    > "AMC" <> wrote in message
    > news:...
    > > Hi,
    > >
    > > I have a page that allows user input. On click of the submit button I

    call
    > > a
    > > javascript function that verifies that all of the fields are filled out
    > > and
    > > then submits the form. I need to add code after the verification that
    > > creates and sends an email. I know how to do this in VBscript, but don't
    > > know how to call a vbscript function from a jscript function (is this

    even
    > > possible?). Any help would be appreciated. I don't want the users email
    > > client to open, everything must be done in code.
    > >
    > > Thanks,
    > > AMC
    > >
    > >

    >
    >
     
    AMC, May 26, 2004
    #4
  5. AMC

    AMC Guest

    Thanks
    "Jeff Cochran" <> wrote in message
    news:...
    > On Mon, 24 May 2004 19:40:59 -0700, "AMC" <> wrote:
    >
    > >I have a page that allows user input. On click of the submit button I

    call a
    > >javascript function that verifies that all of the fields are filled out

    and
    > >then submits the form. I need to add code after the verification that
    > >creates and sends an email. I know how to do this in VBscript, but don't
    > >know how to call a vbscript function from a jscript function (is this

    even
    > >possible?). Any help would be appreciated. I don't want the users email
    > >client to open, everything must be done in code.

    >
    > FAQ:
    >
    > How do I send e-mail from ASP?
    > http://www.aspfaq.com/show.asp?id=2119
    >
    > Jeff
     
    AMC, May 26, 2004
    #5
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. bivin
    Replies:
    1
    Views:
    735
    venkat
    Jun 27, 2003
  2. VB Programmer
    Replies:
    3
    Views:
    3,809
    VB Programmer
    Aug 9, 2004
  3. =?Utf-8?B?Sm9l?=

    Question about sending email from ASP page

    =?Utf-8?B?Sm9l?=, Sep 12, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    377
    Kevin Spencer
    Sep 13, 2005
  4. Luke
    Replies:
    2
    Views:
    4,813
    Nigel Wade
    Mar 15, 2007
  5. rote
    Replies:
    8
    Views:
    796
Loading...

Share This Page