Hello sir,
When iam trying to send emails to my user accounts which are gmail id's using my application it is giving me this error.
Here is the error...
Server object error 'ASP 0177 : 800401f3'
Server.CreateObject Failed
Not sending CDONTS created e-mails.
Here is the related code ....
- '********************************************************
-
'Creating CDONTS mail object and sending mail to user
-
'********************************************************
-
-
Sub SendEmail(Sender, Receiver, Subject, Message)
-
-
'response.Write(Sender)
-
'response.Write(Receiver)
-
'response.Write(Subject)
-
'response.Write(Message)
-
'response.End()
-
'based on hosting server we need to enable mailing component
-
-
Set Cdo = Server.CreateObject("CDONTS.NewMail")
-
Cdo.From = Sender
-
Cdo.To = Receiver
-
Cdo.Subject = Subject
-
Cdo.Body = Message 'Content
-
Cdo.BodyFormat = 0 '--->HTML format
-
Cdo.MailFormat = 0 '--->HTML format
-
'''Response.Write Message & "<br>" 'Displays the content to be sent to receiver
-
-
if Session("UserType")="Participant" then
-
Cdo.Value("Reply-To") = Session("PEmail")
-
else
-
Cdo.Value("Reply-To") = Sender
-
end if
-
'response.Write(Message)
-
'response.End()
-
Cdo.Send 'Sends the mail
-
-
'Set Mailer = Server.CreateObject("SMTPsvg.Mailer")
-
'Mailer.FromName = "Assessment"
-
'Mailer.FromAddress = "rv@gmail.com"
-
'Mailer.RemoteHost = "smtp.gmail.com"
-
-
''Here is where you can change who the email is sent to
-
-
'Mailer.AddRecipient strFirstname, strToEmail
-
-
'Mailer.ContentType = "text/html"
-
'Mailer.Subject = "Assessment:New Account Invitation"
-
'Mailer.BodyText = strMailbody
-
-
'if Mailer.SendMail then
-
'response.Write(strMailbody)
-
'response.End()
-
-
'Call SendEmail("rv@gmail.com", strToEmail, "Assessment:New Account Invitation", strMailbody)
-
-
End Sub
Please help....as mails are not going to the clients .....some online forums suggest replacing cdo with some thing called cdomessage.....iam new to this asp and do i need to change them or is there any other way....if i need to change and make it work what changes do i make and where.....this code is in common.asp ...
Thanks...
Jason.