Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Anyone know how to email the user after submitting form? 1

Status
Not open for further replies.

TonyU

Technical User
Joined
Feb 14, 2001
Messages
1,317
Location
US

I'm trying to figure out how I can email the user after filling out a form using DreamWeaver but can't find help on it. Thanks all.
[tt]"A Successful man is one who can build a firm foundation with the bricks that others throw at him"[/tt]
[noevil]
 
hey Tony,

heres some script that is for JMail - you need to find out what email service you can use - jmail, cdonts, aspmail, aspemail, etc. Change the recordset.fields.Item("stuff").Value stuff to request.form("Stuff")

<%
Dim strRecipient
Dim strCallsign
Dim strPassword
Dim strSquad
Dim strYahoo
Dim strICQ

strRecipient = Recordset1.Fields.Item(&quot;Email&quot;).Value
strCallsign = Recordset1.Fields.Item(&quot;callsign&quot;).Value
strPassword = Recordset1.Fields.Item(&quot;password&quot;).Value
strSquad = Recordset1.Fields.Item(&quot;squad&quot;).Value
strYahoo = Recordset1.Fields.Item(&quot;yahoo&quot;).Value
strICQ = Recordset1.Fields.Item(&quot;ICQ&quot;).Value
%>
<%
Set JMail = Server.CreateObject(&quot;JMail.SMTPMail&quot;)

JMail.ServerAddress = &quot;smtp.yourdomain.com&quot;
JMail.ContentType = &quot;text/html&quot;
JMail.Sender = &quot;Webmaster@yourdomain.com&quot;
JMail.Subject = &quot;De Domain Registration&quot;
JMail.AddRecipient strRecipient
JMail.AddRecipient &quot;webmaster@YourDomain.com&quot;
JMail.Body = &quot;<font face='arial' size ='3'>&quot; &_
&quot;IP Address - &quot; & Request.Servervariables(&quot;REMOTE_ADDR&quot;) &_
&quot;<BR>&quot; &_
&quot;Hello!&quot; & strCallsign &_
&quot;<br>&quot; &_
&quot;Email confirmation from De Site&quot; &_
&quot;<br>&quot; &_
&quot;Here are your registration details:&quot; &_
&quot;<br>&quot; &_
&quot;Callsign:&quot; & strCallsign &_
&quot;<br>&quot; &_
&quot;Password:&quot; & strPassword &_
&quot;<br>&quot; &_
&quot;Squad:&quot; & strSquad &_
&quot;<br>&quot; &_
&quot;Yahoo:&quot; & strYahoo &_
&quot;<br>&quot; &_
&quot;ICQ:&quot; & strICQ &_
&quot;<p>&quot; &_
&quot;Go to <a href=' Domain</a> to log in and get started...&quot; &_
&quot;<p>&quot; &_
&quot;We highly recommend changing your password through the edit my account link. At least to a password you will remember&quot; &_
&quot;<P>&quot; &_
&quot;<BR>&quot; &_
&quot;Please note - you will need to register in the messageboard area to post&quot; &_
&quot;<BR>&quot; &_
&quot;<BR>&quot; &_
&quot;Cheers,&quot; &_
&quot;<br>&quot; &_
&quot;US!&quot; &_
&quot;<br>&quot; &_
&quot;</font>&quot;
JMail.AddHeader &quot;Originating-IP&quot;, Request.ServerVariables(&quot;REMOTE_ADDR&quot;)
JMail.Priority = 1
JMail.Execute
Set Jmail = nothing
%>
&quot;I like a man who grins when he fights.&quot;

-- Prime Minister Winston Churchill

Stuart
 
I need one for cdonts
[tt]&quot;A Successful man is one who can build a firm foundation with the bricks that others throw at him&quot;[/tt]
[noevil]
 
well your just bloody on your own now arnt ya?


[noevil]

JUST kidding - I never get to say the word bloody in a sentance.

And without further a-do. here we are.

<%
Dim strRecipient
Dim strCallsign
Dim strPassword
Dim strSquad
Dim strYahoo
Dim strICQ

strRecipient = Recordset1.Fields.Item(&quot;Email&quot;).Value
strCallsign = Recordset1.Fields.Item(&quot;callsign&quot;).Value
strPassword = Recordset1.Fields.Item(&quot;password&quot;).Value
strSquad = Recordset1.Fields.Item(&quot;squad&quot;).Value
strYahoo = Recordset1.Fields.Item(&quot;yahoo&quot;).Value
strICQ = Recordset1.Fields.Item(&quot;ICQ&quot;).Value
%>
<%
Set MyMail = Server.CreateObject(&quot;CDONTS.NewMail&quot;)
MyMail.From = &quot;Webmaster@yourdomain.com&quot;
MyMail.Subject = &quot;De' Registration&quot;
MyMail.to = strRecipient
MyMail.CC = &quot;webmaster@yourdetour.com&quot;
MyMail.MailFormat = 0
MyMail.BodyFormat = 0
MyMail.Body = &quot;<font face='arial' size ='3'>&quot; &_
&quot;IP Address - &quot; & Request.Servervariables(&quot;REMOTE_ADDR&quot;) &_
&quot;<BR>&quot; &_
&quot;Hello!&quot; & strCallsign &_
&quot;<br>&quot; &_
&quot;Email confirmation from here!&quot; &_
&quot;<br>&quot; &_
&quot;Here are your registration details:&quot; &_
&quot;<br>&quot; &_
&quot;Callsign:&quot; & strCallsign &_
&quot;<br>&quot; &_
&quot;Password:&quot; & strPassword &_
&quot;<br>&quot; &_
&quot;Squad:&quot; & strSquad &_
&quot;<br>&quot; &_
&quot;Yahoo:&quot; & strYahoo &_
&quot;<br>&quot; &_
&quot;ICQ:&quot; & strICQ &_
&quot;<p>&quot; &_
&quot;Go to <a href=' De' GVFForce</a> to log in and get started...&quot; &_
&quot;<p>&quot; &_
&quot;We highly recommend changing your password through the edit my account link. At least to a password you will remember&quot; &_
&quot;<P>&quot; &_
&quot;<BR>&quot; &_
&quot;Please note - you will need to register in the messageboard area to post&quot; &_
&quot;<BR>&quot; &_
&quot;<BR>&quot; &_
&quot;Cheers,&quot; &_
&quot;<br>&quot; &_
&quot;US!&quot; &_
&quot;<br>&quot; &_
&quot;</font>&quot;
MyMail.importance = 1
MyMail.Send
Set MyMail = nothing
%>
&quot;I like a man who grins when he fights.&quot;

-- Prime Minister Winston Churchill

Stuart
 
Thanks you bloody schase ;-)
[tt]&quot;A Successful man is one who can build a firm foundation with the bricks that others throw at him&quot;[/tt]
[noevil]
 
[2thumbsup] &quot;I like a man who grins when he fights.&quot;

-- Prime Minister Winston Churchill

Stuart
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top