Reply
emailing back from a web based form....
Old 10-04-2004, 09:24 AM emailing back from a web based form....
Experienced Talker

Posts: 37
Ive got a form which people will fill out on the web with information such as there name, email address etc.

Ive got it to email through to me but any ideas how i can also get it to email a message back to them based on the email address they place in the email field??!??!?!

Thanks!


Woody
woody22 is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 10-04-2004, 09:30 AM
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
Find out what type of mail component your hosting provider has installed on their servers. nine times out of ten, it'll be CDONTS or CDOSYS, but if they're like my provider it could be something else like JMail.

Then do a Google search for tutorials on how to use that component. They're pretty easy to use. Let us know if you get stuck.
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"
Inoxia Pyrotechnics Supplies | Surrey Angels Cheerleading Squad
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Old 10-04-2004, 09:43 AM
Experienced Talker

Posts: 37
thanks for that - our servers support CDONTs and ive got it all set up working:

Code:
<%

Dim myCDONTSMail
Dim strFrom
Dim strTo
Dim strSubject
Dim strBody

strFrom=Request.Form("ParentEmail")


strTo="me@mydomain.net"

strSubject = "Parental Information"
 
strBody="The following parent information was submitted:" & Chr(13)
strBody = strBody & Chr(13) & "Parent Name: "
strBody= strBody & Request.Form("ParentName") & Chr(13)
strBody = strBody & "Parent E-Mail: "
strBody= strBody & Request.Form("ParentEmail") & Chr(13)
strBody = strBody & "Childs Name: "
strBody= strBody & Request.Form("ChildName") & Chr(13)
strBody = strBody & "Childs Form: "
strBody= strBody & Request.Form("ChildForm") & Chr(13)
strBody = strBody & "Further Comments: "
strBody= strBody & Request.Form("FurtherComments") & Chr(13)

Set myCDONTSMail = CreateObject("CDONTS.NewMail")
myCDONTSMail.Send strFrom,strTo,strSubject,strBody
Set myCDONTSMail = Nothing

%>
ive played around with the code but all i need now is to somehow enable the "StrTo" field so the details are also sent to the email field which is input into the form in the first place
woody22 is offline
Reply With Quote
View Public Profile
 
Old 10-04-2004, 10:02 AM
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
You mean you want to send a copy of the message to whoever filled in the form?You can either sepearate the addresses with semicolons:

strTo="me@mydomain.net;" & Request.Form("ParentEmail")

Alternativly, use the CC Field:

myCDONTSMail.cc = Request.Form("ParentEmail")
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"
Inoxia Pyrotechnics Supplies | Surrey Angels Cheerleading Squad
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Old 10-05-2004, 04:24 AM
Experienced Talker

Posts: 37
thanks very much that worked a treat!
woody22 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to emailing back from a web based form....
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.15880 seconds with 13 queries