Here you go, I am giving all the code,
from here you have to improve,add.
As is it is working fine.
from: chinnababureddy@hotmail.com
--------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Invoice</title>
</head>
<body>
<% if request.form("company"

= "" then%>
<form action="invoice.asp" method="post">
<table>
<tr>
<td>Comany Name</td>
<td><input type="text" name="company" value="your company"></td>
</tr>
<tr>
<td>Email</td>
<td><input type="text" name="email" value="chinnababureddy@hotmail.com"></td>
</tr>
<tr>
<td>Amount</td>
<td><input type="text" name="amount" value="10000"></td>
</tr>
<tr>
<td> </td>
<td><input type="reset" value="Reset"> <input type="submit"
value="Submit"></td>
</tr>
</table>
</form>
<% else %>
<% company=request.form("company"

%>
<% response.write "Company - " & company %>
<br>
<% email=request.form("email"

%>
<% response.write "Email - " & email %>
<br>
<% amount=request.form("amount"

%>
<% response.write "Amount - " & amount %>
<br>
<% response.write "Email has been sent out with attachment." %>
<br>
<%
Const ForReading = 1, ForWriting = 2, ForAppending = 8
dim strFileName, objFSO, objMenuPage
Set objFSO = CreateObject("Scripting.FileSystemObject"
strFileName = "c:\temp\invoice.htm"
Set objMenuPage = objFSO.createtextFile(strFileName, forWriting, True)
'write the HTML page
objMenuPage.WriteLine "<html><head><title>Invoice</title></title></head>"
objMenuPage.WriteLine "<body><b><center>ASP - Invoice<br><hr color='blue' width='100%' size='1'></center></b>"
objMenuPage.WriteLine Now()
objMenuPage.WriteLine "<br>"
objMenuPage.WriteLine "<br>"
objMenuPage.WriteLine "Company - " & company
objMenuPage.WriteLine "<br>"
objMenuPage.WriteLine "Email - " & email
objMenuPage.WriteLine "<br>"
objMenuPage.WriteLine "Amount - " & amount
objMenuPage.WriteLine "<br>"
objMenuPage.WriteLine "</body></html>"
objMenuPage.Close
%>
<%
Dim objMail
Set objMail = Server.CreateObject("CDONTS.NewMail"
objMail.From = "webserver"
objMail.Subject = "Your Invoice"
objMail.AttachFile("c:\temp\invoice.htm"

objMail.To = email
objMail.Body = "See attachment, your invoice."
objMail.Send
set objMail = nothing
%>
<% end if %>
</body>
</html>