I have tried different email components using a form processor but nothing seems to work. They installed CDOsys last night, but my processor script will still not work. I usually just plug this script into a web site and all works perfectly fine. But not here. I have tried it with ASPEmail, ASPmail, Jmail and now CDOsys.
Since I can elect which component to use within the script, I am thinking I should go back to square one and figure out which one is the most reliable, secure and will work forever once installed.
Then from there, figure out why the server is causing so much grief. It could be my script, but as I said, it has worked every where else I have ever tried.
Has anyone got some advice? What should I use, what are you using?
Currently I am getting this error:
error '8004020f'
/control/forms/incEmail.asp, line 21
and code it is coming from is:
emailcomponent="CDOSYS"
sub sendmail(recipient,senderemail,subject,message)
Set iConf = CreateObject ("CDO.Configuration" )
Set Flds = iConf.Fields
Flds("http://schemas.microsoft.com/cdo/configuration/smtpserver") = smtpserver
Flds("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
Flds.Update
Set oMail= CreateObject("CDO.Message" )
Set oMail.Configuration = iConf
oMail.From = defaultemail
if senderemail<>"" then
oMail.From = senderemail
omail.replyto = senderemail
end if
strTo=replace(recipient,vbcrlf,";")
oMail.To = strTo
oMail.Subject = subject
oMail.TextBody = message
oMail.Send
Set oMail = Nothing
end sub
I do have a ticket in, but since we have had no luck since last night, thought I would see if anyone had any advice here.
Thanks.