Hey, I've been trying to get a form mailer to work for a while now, always ends up in errors, the latest I have tried to use comes from BrainJar.
My error is:
Server object error 'ASP 0177 : 800401f3'
Server.CreateObject Failed
/ohlandproperties/formmail.asp, line 482
Here is line 482 (in red):
'Send email (ASPMail version).
if mailComp = "ASPMail" then
set mailObj = Server.CreateObject("SMTPsvg.Mailer")
mailObj.RemoteHost = smtpServer
mailObj.FromAddress = fromAddr
for each addr in Split(recipients, ",")
mailObj.AddRecipient "", Trim(addr)
next
if ccToAddr <> "" then
mailObj.ReplyTo = Trim(ccToAddr)
mailObj.AddCC "", Trim(ccToAddr)
elseif replyToAddr <> "" then
mailObj.ReplyTo = Trim(replyToAddr)
end if
mailObj.Subject = subject
mailObj.ContentType = "text/html"
mailObj.BodyText = body
if not mailObj.SendMail then
SendMail = "Email send failed: " & mailObj.Response & "."
end if
exit function
end if
I'm relatively new to this, any explanation would be most appreciated!