Sack him!
The email component is being set to Mail...
Set Mail = Server.CreateObject("Persi
then you're using Mailer later in the code ergo the error. Not sure which it's meant to be since you're setting the body content here
Mail.Body = Request("body")
the you build up a string and are setting the body to something else.
Mailer.BodyText = strMsgHeader & strMsgInfo & strMsgFooter
So amended your code to use both then you can let us know which it should be
<%
Set Mail = Server.CreateObject("Persi
Mail.Host = "smtp_gw.oceanelectric.net
Mail.From = "test@testing-AspMail-do-n
Mail.FromName = "inquiry"
Mail.AddAddress Request("recipient")
Mail.Subject = Request("Subject")
For Each Item in Request.Form
strMsgInfo = strMsgInfo & Item & ": " & Request.Form(Item) & vbCrLf
Next
strMsgHeader = "Form information follows:" & vbCrLf
strMsgHeader = strMsgHeader & "*************" & vbCrLf
strMsgFooter = "*************"
Mail.Body = Request("body") & strMsgHeader & strMsgInfo & strMsgFooter
If Mail.SendMail Then
Set Mail = Nothing
strErr = ""
bSuccess = False
On Error Resume Next ' catch errors
Mail.Send ' send message
If Err <> 0 Then ' error occurred
strErr = Err.Description
else
bSuccess = True
End If
End If
%>
Main Topics
Browse All Topics





by: hongjunPosted on 2003-11-12 at 05:26:48ID: 9731179
You need to install AspEmail
Get it from www.aspemail.com
hongjun