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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sending an email after the form has been filled - How? Bit Urgent

Status
Not open for further replies.

JrClown

Technical User
Oct 18, 2000
393
0
0
US
Hello all, I would like to know how to send a "Thank you for joining us" email after the user registers, using Dreamweaver 4

Thanks in advance fellas.


"The reward of one duty done is the power to fulfill another"
Jr Cl[atom]wn


 
example using JMAIL. You can change the references to recordset to request.form



<%
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top