Hi!
I'm really a beginner with api and coding, so maybe I'm doing some basic errors here.
We have an order-form that has a serverside handling sending email to buyer, seller and an html-confirmation.
The page has not worked for a while. It has used CDONT and as that is depreciated I thought converting to CDOSYS would be a good idea. I belive adding SMPT autentication is requred also.
I get an error on the autentication-line
Here's my code:
Set myMail = CreateObject("CDO.Message")
myMail.Subject = "Bestilling av bok/bøker - Relasjonsledelse"
myMail.From = Request.Form("Epost")
myMail.To = "myEmail"
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "mail.itpays.no"
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 465
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusername") ="myEmail"
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendpassword") ="myPassword"
Here's the error-message
Microsoft VBScript runtime error '800a01a8'
Object required: 'ObjSendMail'
/svarbestill2.asp, line 62
Line62:
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1