ok, i have a question, there is a fair bit of code in this post.. i dont expect someone to trail through all of it and give me the complete solution.. i would appreciate however if someone could show me a single example.. and i think i can do the rest..
basically, i have a html template.. with tables..
and i want that template to be sent to me.. with the details filled in from my website form..
i have the html code template.. and i have the code that emails the details..
the email at the moment simply sends the details like so..
Date: this
To: this
From: this
etc
i want the values to be put in the template and have that template emailed to me..
below is the asp send mail code. and below that is the html template..
once again. any help on how to get the syntax correct is all i need..
the send mail code
and the html template
London Heathrow Cars
basically, i have a html template.. with tables..
and i want that template to be sent to me.. with the details filled in from my website form..
i have the html code template.. and i have the code that emails the details..
the email at the moment simply sends the details like so..
Date: this
To: this
From: this
etc
i want the values to be put in the template and have that template emailed to me..
below is the asp send mail code. and below that is the html template..
once again. any help on how to get the syntax correct is all i need..
the send mail code
Code:
<% @LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<%
Set Mail = Server.CreateObject("SMTPsvg.Mailer")
Mail.FromName = "London Heathrow Cars"
Mail.FromAddress= Request.Form("Email")
Mail.RemoteHost = "mrvnet.kundenserver.de"
Mail.AddRecipient "London Heathrow Cars", "bookings@londonheathrowcars.com"
Mail.Subject = "Booking Form"
strEmailText = strEmailText & "Day: " & Request.Form("day") & vbCrLf
strEmailText = strEmailText & "Month: " & Request.Form("month") & vbCrLf
strEmailText = strEmailText & "Year: " & Request.Form("year") & vbCrLf
strEmailText = strEmailText & "Time - Hours: " & Request.Form("hour") & vbCrLf
strEmailText = strEmailText & "Time - Minutes: " & Request.Form("minutes") & vbCrLf
strEmailText = strEmailText & "Single or Return: " & Request.Form("journey_type") & vbCrLf
strEmailText = strEmailText & "Special Requirements: " & Request.Form("special") & vbCrLf
strEmailText = strEmailText & "Pickup Address: " & Request.Form("padd") & vbCrLf
strEmailText = strEmailText & "Pick. Flight No: " & Request.Form("pflight") & vbCrLf
strEmailText = strEmailText & "Coming From: " & Request.Form("aircome") & vbCrLf
strEmailText = strEmailText & "Destination Address: " & Request.Form("dadd") & vbCrLf
strEmailText = strEmailText & "Dest. Flight No: " & Request.Form("dflight") & vbCrLf
strEmailText = strEmailText & "Title: " & Request.Form("title") & vbCrLf
strEmailText = strEmailText & "Name: " & Request.Form("myname") & vbCrLf
strEmailText = strEmailText & "Email: " & Request.Form("Email") & vbCrLf
strEmailText = strEmailText & "Phone: " & Request.Form("Phone") & vbCrLf
strEmailText = strEmailText & "No of Passengers: " & Request.Form("passengers") & vbCrLf
strEmailText = strEmailText & "Baby Seat: " & Request.Form("tick") & vbCrLf
strEmailText = strEmailText & "Luggage: " & Request.Form("luggage") & vbCrLf
strEmailText = strEmailText & "Car Type: " & Request.Form("car") & vbCrLf
strEmailText = strEmailText & "Payment Type: " & Request.Form("pay") & vbCrLf
strEmailText = strEmailText & "Contact me By: " & Request.Form("contact") & vbCrLf
Mail.BodyText = strEmailText
if Mail.SendMail then
Response.Redirect "taxi-booking2.htm"
else
Response.Write "Mail send failure. Error was " & Mail.Response
end if
Set Mail = Nothing
%>
</body>
</html>
and the html template
Code:
<html>
<head>
<title></title>
<meta name="description" content="">
<meta name="keywords" content="">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body text="#333333">
<table border="0" width="560" id="table1" cellspacing="0" cellpadding="0">
<tr>
<td>
<font color="#5A79B5" face="Arial">
<img border="0" src="emaillogo.gif" width="560" height="113"></font></td>
</tr>
</table>
<table border="1" id="table4" cellspacing="0" cellpadding="0" bordercolor="#5A79B5" width="560" bordercolorlight="#5A79B5" bordercolordark="#5A79B5">
<tr>
<td align="center" valign="top">
<table border="0" width="550" id="table5" cellpadding="2" cellspacing="1">
<tr>
<td colspan="2">
<p align="left"><b>
<font face="Arial" style="font-size: 16pt" color="#5A79B5">
LONDON HEATHROW CARS</font></b></td>
</tr>
<tr>
<td colspan="2">
<font color="#000080" size="2">
<span style="font-family: Arial; ">FAO Mr </span>
<span style="font-family: Arial">this</span></font><p>
<font color="#000080" size="2">
<span style="font-family: Arial; ">Thank you for your
booking request. </span></font>
<font face="Arial" size="2" color="#000080">blabla:</font><p>
<font color="#000080" size="2" face="Arial"><b>UK Free phone: 0800 505 3231</b><br>
<b>International:</b> <b> +44 (0) 208 814 1223</b><br>
</font></td>
</tr>
<tr>
<td colspan="2"><hr color="#5A79B5"></td>
</tr>
<tr>
<td width="164"><b>
<font face="Arial" size="2" color="#000080">Date:</font></b></td>
<td width="375"><b>
<font face="Arial" size="2" color="#000080">date goes
here</font></b></td>
</tr>
<tr>
<td width="164"> </td>
<td width="375"> </td>
</tr>
<tr>
<td width="164"><b>
<font size="2" face="Arial" color="#000080">From:</font></b></td>
<td width="375">
<font face="Arial" size="2" color="#000080">from</font></td>
</tr>
<tr>
<td width="164"><b>
<font face="Arial" size="2" color="#000080">ETA:</font></b></td>
<td width="375">
<font face="Arial" size="2" color="#000080">[b]put the pickup time here for example[/b]</font></td>
</tr>
<tr>
<td width="164"><b>
<font face="Arial" size="2" color="#000080">Flight:</font></b></td>
<td width="375">
<font face="Arial" size="2" color="#000080">flight
number</font></td>
</tr>
<tr>
<td width="164"><b>
<font face="Arial" size="2" color="#000080">To:</font></b></td>
<td width="375">
<font face="Arial" size="2" color="#000080">to here</font></td>
</tr>
<tr>
<td width="164"> </td>
<td width="375"> </td>
</tr>
<tr>
<td width="164"><b>
<font face="Arial" size="2" color="#000080">Vehicle
Type:</font></b></td>
<td width="375">
<font face="Arial" size="2" color="#000080">car</font></td>
</tr>
<tr>
<td width="164"><b>
<font face="Arial" size="2" color="#000080">Total fare:</font></b></td>
<td width="375">
</td>
</tr>
<tr>
<td width="535" colspan="2"><hr color="#5A79B5"></td>
</tr>
<tr>
<td width="535" colspan="2">
<p>
<font face="Arial" size="2" color="#000080">With kind regards</font></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
London Heathrow Cars