% Dim strfname,strsurname,stradd , strphone, strmail, strfax, strcontact Dim strFrom,strTo,strMailBody,strSubject strMailBody="" 'If form is submitted then only send mail if request("IsFormSubmitted") ="1" then strfname=request.form("fname") strsurname=request.Form("sname") stradd=request.form("address") strmail=request.form("temailid") strphone=request.form("phone") 'strfax=request.form("fax") strcontact=request.form("tquery") strsname=request.Form("sname") strcity=request.Form("tcity") strstate=request.Form("tstate") strzipcode=request.Form("tzipcode") strcountry=request.Form("tcountry") strarea=request.Form("textarea") 'if request.form("r1") 'strsname=request.Form("sname") 'strsname=request.Form("sname") strMailBody="
" strMailBody=strMailBody & "" strMailBody=strMailBody & "Name : " & strfname & " " & strsname & "" strMailBody=strMailBody & "Address : " & stradd & "" strMailBody=strMailBody & "City : " & strcity & "" strMailBody=strMailBody & "State : " & strstate & "" strMailBody=strMailBody & "Zip / Pin Code : " & strzipcode & "" strMailBody=strMailBody & "Country : " & strcountry & "" strMailBody=strMailBody & "Email Id : " & strmail & "" ' strMailBody=strMailBody & "Zip / Pin Code : " & strzipcode & "" strMailBody=strMailBody & "Phone: " & strphone & "" 'strMailBody=strMailBody & "Fax : " & strfax & chr(13) strMailBody=strMailBody & "Comments : " & strarea & "" strMailBody=strMailBody & "You would like to take a holiday in : " & request.form("r1") & "" strMailBody=strMailBody & "Are you a travel agent : " & request.form("r2") & "" strMailBody=strMailBody & "Are you a NRI : " & request.form("r3") & "" strMailBody=strMailBody & "The Package you are interested in : " & request.form("tpkg") & "" strMailBody=strMailBody & "Your query : " & request.form("tquery") & "" strMailBody=strMailBody & "We are " & request.form("tadults") & " adults and " & request.form("tchild") & " children below 12. " strMailBody=strMailBody & "We want to travel in (Date) : " & request.form("tdate") & "" strMailBody=strMailBody & "Total Price : " & request.form("txttourprice") & " " & request.form("txtcurrency") & "" 'strMailBody=strMailBody & "Comments : " & strcontact & "" strMailBody=strMailBody & "" strMailBody=strMailBody & "" ' CONST url = "http://www.wherever.com/" ' htmlbody = " this is dfhd 2n linee. Please register." ' textbody = "Please register:" & vbCrLf & url strFrom=strmail 'strTo="[email protected]" strSubject="Harshil Tour Web Query " strTo="[email protected]" call SendMailCDOCacheConf (strTo,strSubject, strMailBody, strFrom) 'call SendMailcontact(strFrom,strTo,strMailBody,strSubject) Response.Redirect("Thanku.html") end if %>
|