Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: send form results by e-mail


Message #1 by cody@g... on Thu, 26 Jul 2001 16:04:53
Within the context of ASP and VBS, I am looking for an example or tutorial 

on how to send form results to an e-mail address.   So far, I haven't 

found anything addressing this in either ASP or VBS texts.



Thanks for any useful leads to this end.

J.C.Couch

cody@g...
Message #2 by "Ken Schaefer" <ken@a...> on Fri, 27 Jul 2001 10:51:47 +1000
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

From: <cody@g...>

Subject: [asp_web_howto] send form results by e-mail





: Within the context of ASP and VBS, I am looking for an example or tutorial

: on how to send form results to an e-mail address.   So far, I haven't

: found anything addressing this in either ASP or VBS texts.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



Which books did you look in?!?



http://www.4guysfromrolla.com/webtech/faq/Email/faq1.shtml

http://www.4guysfromrolla.com/webtech/faq/Email/faq2.shtml

http://www.4guysfromrolla.com/webtech/faq/Email/faq3.shtml

http://www.4guysfromrolla.com/webtech/faq/Email/faq4.shtml

http://www.4guysfromrolla.com/webtech/faq/Email/faq5.shtml

http://www.4guysfromrolla.com/webtech/faq/Email/faq6.shtml



Cheers

Ken



Message #3 by cw.inf@c... on Fri, 27 Jul 2001 10:07:41
Hi, 



Have a look at this code. It will help you. 

I have not looked at Kens suggestion! 



Code

**********************************

    for i=1 to request.form.count

        Message = Message & request.form.key(i) & ": " & _

        request.form.item(i) & vbCrLf

    Next





    Set objMail = CreateObject("CDONTS.Newmail")

    objMail.From = request.form("Email")

    objMail.To = "your@m..."

    objMail.Subject = "Your sub. goes here ..."

    objMail.Body = Message

    objMail.Send

    Set objMail = Nothing

**********************************



Chrilles

  Return to Index