Hi
I know that this is not a subject for this forum but... what the heck!
Short answer is, I'm not sure about emailing direct from the page.
In the past I've achieved what you are looking for by passing the email
content to a server-side ASP page that has no body element and acts, in
essence like an EXE file by -
1. Enclose all relevant fields in a HTML Form tags. e.g. the fields txtTo,
txtFrom, txtSubject, txtContent etc.
2. Set the Forms 'Action' parameter to the ASP page - e.g. <FORM Method=Post
Action="SendMail.asp">
3. Create the SendMail.asp ASP page on the server with content something like:
<%@ language=VBScript %>
<%
Set EMail = Server.CreateObject("CDONTS.NewMail")
From = Request("txtFrom")
SendTo = Request("txtTo")
Subject = Request("txtSubject")
Message = Request("txtContent")
EMail.Send From, SendTo, Subject, Message, 1
set EMail = nothing
Response.redirect("probably to a web page that confirms receipt etc.")
%>
Don't have any Body content for this page so that it doesn't display - i.e.
its actioned on the server only.
Good luck.
BW