Strange one this...
I'm using cdonts
Function sendMail(fromName, from, rcpt, subject, body)
Set mail = Server.CreateObject ("CDONTS.NewMail"
mail.BodyFormat = 1
mail.MailFormat = 0
on error resume next
mail.Send from, rcpt, subject, body
end if
if err <> 0 then
'unrem if you want to debug email errors
'response.Write "<br><br> Error sending email: " & Err.Description & ". Have you installed an email component in this system?"
'response.Write "<hr><br>From "&from
'response.Write "<br>To "&rcpt
'response.Write "<br>Subject "&subject
'response.Write "<br>Body "&body
end if
end Function
i get no error, no problem with to and from but it does not send a message, i have smtp install because my site uses it.. is there something i may be missing?
I'm using cdonts
Function sendMail(fromName, from, rcpt, subject, body)
Set mail = Server.CreateObject ("CDONTS.NewMail"
mail.BodyFormat = 1
mail.MailFormat = 0
on error resume next
mail.Send from, rcpt, subject, body
end if
if err <> 0 then
'unrem if you want to debug email errors
'response.Write "<br><br> Error sending email: " & Err.Description & ". Have you installed an email component in this system?"
'response.Write "<hr><br>From "&from
'response.Write "<br>To "&rcpt
'response.Write "<br>Subject "&subject
'response.Write "<br>Body "&body
end if
end Function
i get no error, no problem with to and from but it does not send a message, i have smtp install because my site uses it.. is there something i may be missing?