Hello rjlorenzo,
Here is a one page example that you can use/tweak.
Page is called: ThisPage.asp
-
<%
-
If (Request.Form("xSendMessage")) Then
-
Set myMail=CreateObject("CDO.Message")
-
myMail.Subject = Request.Form("xSubject")
-
myMail.From = "Billy@billy.com" 'Place an email address here so when someone replies to this email you will get it.
-
myMail.To = Request.Form("xEmail")
-
myMail.TextBody = Request.Form("xMessage")
-
-
On Error Resume Next
-
myMail.Send
-
If Err <> 0 Then
-
Response.Write("<h3><Font Color='#FF0000'>Error occurred: <i>" & Err.Description & "</i></Font></h3>")
-
else
-
Response.Write("Your message was sent successfully.")
-
End If
-
End If
-
%>
-
<html>
-
<head>
-
<title>Example</title>
-
</head>
-
<body>
-
<form method="post" action="ThisPage.asp" name="xForm" id="xForm">
-
<input type="hidden" name="xSendMessage" value="true">
-
Full Name: <input type="text" name="xName" size="50"><br>
-
Email: <input type="text" name="xEmail" size="50"><br>
-
Subject: <input type="text" name="xSubject" size="50"><br>
-
Message: <textarea name="xMessage" cols="50" rows="5"></textarea><br>
-
<input type="submit" value="submit">
-
</form>
-
</body>
-
</html>
-
If you get an error this should tell you why.
Hope this helps,
CroCrew~