Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



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

Posts: 37
Trades: 0
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
 
 
Register now for full access!
Old 10-04-2004, 10:30 AM
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
Trades: 0
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!"

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Old 10-04-2004, 10:43 AM
Experienced Talker

Posts: 37
Trades: 0
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, 11:02 AM
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
Trades: 0
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!"

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Old 10-05-2004, 05:24 AM
Experienced Talker

Posts: 37
Trades: 0
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 Search this Thread
Search this Thread:

Advanced Search

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

BB 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.22614 seconds with 12 queries