C
Chris van den Heever
I have my script from a form i wish to have send an email to the selected
email address that varies according to a lookup and I have the script from
my" isp" to allow it to work however i cant figure out where to place the
"isp"script in the form could someone please take a look and let me know
many thanks in advance!
Cheers
Chris
attached 1
My page script
"""""name="FrontPage_Form1">
<!--webbot bot="SaveResults" startspan
S-Email-Format="TEXT/PRE" S-Email-Address="<<Email>>"
B-Email-Label-Fields="TRUE" S-Date-Format="%d %B, %Y" S-Time-Format="%I:%M
%p" S-Builtin-Fields="Date Time" S-Form-Fields="Name Returnemail Request
Contactno " --><!--webbot bot="SaveResults" endspan --><p
align="center">Gotit.co.za</p><p align="center">
<!--webbot bot="DatabaseResultColumn"
s-columnnames="ID,Business,Dealing,Contactperson,Landline,Remote_computer_na
me,User_name,Browser_type,Timestamp,Resultscatagory,newsubcategory,Email,Pai
d detail,Description,Services,Address,classifieds,Website" s-column="Email"
b-tableformat="FALSE" b-hashtml="FALSE" b-makelink="FALSE" clientside
b-MenuFormat preview="<font
size="-1">&lt;&lt;</font>Email<font
size="-1">&gt;&gt;</font>" startspan
s-ColumnTypes="3,202,202,202,202,202,202,202,135,202,202,202,202,203,203,203
,202,202" --><%=FP_FieldVal(fp_rs,"Email")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="8328" --></p>
<p align="center"><font size="1">Business
Reference</font></p>
<p>Name<input type="text" name="Name"
size="34"></p><p>Email<input type="text" name="Returnemail" size="34"></p>
<p><!--webbot bot="Validation" s-display-name="enter your
request" b-value-required="TRUE" i-minimum-length="3"
i-maximum-length="100" --><textarea rows="2" name="Request"
cols="39"></textarea></p><p>Contact no<input type="text" name="Contactno"
size="27"></p><p align="center"><input type="submit" value="Submit"
name="submit"><input type="reset" value="Reset" name="B2"></p>
</form>""""""
Isp script
"""""
SMTP.UserID = "(e-mail address removed)" 'use your isat mailbox
SMTP.FromName = "A.N. Other" 'Your name
SMTP.FromAddress = "(e-mail address removed)" 'your email address
SMTP.ToAddress = Request("Email") 'recipient addresses
SMTP.Subject = Request("Name") 'Subject
SMTP.Body = _
"Name: " & Request("Name") & Chr(13) & Chr(10) & _
"Email: " & Request("EMail") & Chr(13) & Chr(10) & _
"Description: " & Request("Description")
if not SMTP.Send then
Response.Write("<p>Error: " & SMTP.Error & "</p>")
else
Response.Write("<p>Order sent.</p>")
end if
Set SMTP = Nothing
%>
</body>
</html""""""
thanks for any help
email address that varies according to a lookup and I have the script from
my" isp" to allow it to work however i cant figure out where to place the
"isp"script in the form could someone please take a look and let me know
many thanks in advance!
Cheers
Chris
attached 1
My page script
"""""name="FrontPage_Form1">
<!--webbot bot="SaveResults" startspan
S-Email-Format="TEXT/PRE" S-Email-Address="<<Email>>"
B-Email-Label-Fields="TRUE" S-Date-Format="%d %B, %Y" S-Time-Format="%I:%M
%p" S-Builtin-Fields="Date Time" S-Form-Fields="Name Returnemail Request
Contactno " --><!--webbot bot="SaveResults" endspan --><p
align="center">Gotit.co.za</p><p align="center">
<!--webbot bot="DatabaseResultColumn"
s-columnnames="ID,Business,Dealing,Contactperson,Landline,Remote_computer_na
me,User_name,Browser_type,Timestamp,Resultscatagory,newsubcategory,Email,Pai
d detail,Description,Services,Address,classifieds,Website" s-column="Email"
b-tableformat="FALSE" b-hashtml="FALSE" b-makelink="FALSE" clientside
b-MenuFormat preview="<font
size="-1">&lt;&lt;</font>Email<font
size="-1">&gt;&gt;</font>" startspan
s-ColumnTypes="3,202,202,202,202,202,202,202,135,202,202,202,202,203,203,203
,202,202" --><%=FP_FieldVal(fp_rs,"Email")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="8328" --></p>
<p align="center"><font size="1">Business
Reference</font></p>
<p>Name<input type="text" name="Name"
size="34"></p><p>Email<input type="text" name="Returnemail" size="34"></p>
<p><!--webbot bot="Validation" s-display-name="enter your
request" b-value-required="TRUE" i-minimum-length="3"
i-maximum-length="100" --><textarea rows="2" name="Request"
cols="39"></textarea></p><p>Contact no<input type="text" name="Contactno"
size="27"></p><p align="center"><input type="submit" value="Submit"
name="submit"><input type="reset" value="Reset" name="B2"></p>
</form>""""""
Isp script
"""""
SMTP.UserID = "(e-mail address removed)" 'use your isat mailbox
SMTP.FromName = "A.N. Other" 'Your name
SMTP.FromAddress = "(e-mail address removed)" 'your email address
SMTP.ToAddress = Request("Email") 'recipient addresses
SMTP.Subject = Request("Name") 'Subject
SMTP.Body = _
"Name: " & Request("Name") & Chr(13) & Chr(10) & _
"Email: " & Request("EMail") & Chr(13) & Chr(10) & _
"Description: " & Request("Description")
if not SMTP.Send then
Response.Write("<p>Error: " & SMTP.Error & "</p>")
else
Response.Write("<p>Order sent.</p>")
end if
Set SMTP = Nothing
%>
</body>
</html""""""
thanks for any help