|
|
|
Joined: 4/8/2006
Posts: 40
|
|
|
Hello
In case this might give an understanding of the problem, here is my error log:
AssemblyVersion: -1 Method: FileName: FileLineNumber: -1 FileColumnNumber: -1 PortalID: -1 PortalName: UserID: -1 UserName: ActiveTabID: -1 ActiveTabName: AbsoluteURL: AbsoluteURLReferrer: ExceptionGUID: DefaultDataProvider: InnerException: Could not access 'CDO.Message' object. Message: System.Web.HttpException: Could not access 'CDO.Message' object. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException (0x80040211): The message could not be sent to the SMTP server. The transport error code was 0x80040217. The server response was not available --- End of inner exception stack trace --- at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters) at System.RuntimeType.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParameters) at System.Web.Mail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args) --- End of inner exception stack trace --- at System.Web.Mail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args) at System.Web.Mail.CdoSysHelper.Send(MailMessage message) at System.Web.Mail.SmtpMail.Send(MailMessage message) at DotNetNuke.Services.Mail.Mail.SendMail(String MailFrom, String MailTo, String Cc, String Bcc, MailPriority Priority, String Subject, MailFormat BodyFormat, Encoding BodyEncoding, String Body, String Attachment, String SMTPServer, String SMTPAuthentication, String SMTPUsername, String SMTPPassword) StackTrace: Source: Server Name: USER-X88W8PH4KM
Thanks
Laura
|
|
|
|
| |
|
|
Joined: 4/8/2006
Posts: 40
|
|
|
Hello
newgirl wrote
In case this might give an understanding of the problem, here is my error log:
AssemblyVersion: -1 Method: FileName: FileLineNumber: -1 FileColumnNumber: -1 PortalID: -1 PortalName: UserID: -1 UserName: ActiveTabID: -1 ActiveTabName: AbsoluteURL: AbsoluteURLReferrer: ExceptionGUID: DefaultDataProvider: InnerException: Could not access 'CDO.Message' object. Message: System.Web.HttpException: Could not access 'CDO.Message' object. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException (0x80040211): The message could not be sent to the SMTP server. The transport error code was 0x80040217. The server response was not available --- End of inner exception stack trace --- at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters) at System.RuntimeType.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParameters) at System.Web.Mail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args) --- End of inner exception stack trace --- at System.Web.Mail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args) at System.Web.Mail.CdoSysHelper.Send(MailMessage message) at System.Web.Mail.SmtpMail.Send(MailMessage message) at DotNetNuke.Services.Mail.Mail.SendMail(String MailFrom, String MailTo, String Cc, String Bcc, MailPriority Priority, String Subject, MailFormat BodyFormat, Encoding BodyEncoding, String Body, String Attachment, String SMTPServer, String SMTPAuthentication, String SMTPUsername, String SMTPPassword) StackTrace: Source: Server Name: USER-X88W8PH4KM
Oops! I thought the post above to be a continuation of the previous post below: (sorry for double posting)
What am I doing wrong, I am trying to set up my SMTP on my web site.
>> Host >> Host Settings >> Advanced settings >> SMTP server settings.
I have set the settings accordingly using the setting supplied from my hosting provider, with SMTP Authentication set to Basic:
on test I see this error message:
Could not access 'CDO.Message' object.
What else do I need to set?
Thanks
Laura
|
|
|
|
| |
|
|
Joined: 4/8/2006
Posts: 40
|
|
|
Hello
I understand from previous posts that the problem could be:
ISP is not allowing your application access to the CDOSYS.dll
I know this is s dumb question, but where is this dll file located?
Thanks
Laura
|
|
|
|
| |
|
|
Joined: 7/3/2006
Posts: 1
|
|
|
Hi guys
I too suffered with this sick error and found a good solution on the net, I tried its works 100% fine with me. Wish you all a good luck too. Here's the code, as i made it resuable function to send a mail there are some variables i pass, so you can change them to their exact values
Dim MyMail As New MailMessage
MyMail.From = sFrom
MyMail.To = sTo
MyMail.Subject = sSubject
MyMail.Body = sMessage
Select Case UCase(sFormat)
Case "HTML" : MyMail.BodyFormat = MailFormat.Html
Case Else : MyMail.BodyFormat = MailFormat.Text
End Select
MyMail.Priority = MailPriority.High
MyMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "0")
//GetCommonConstants("SMTPServer") this is for your smptserver name or address
SmtpMail.SmtpServer.Insert(0, GetCommonConstants("SMTPServer"))
SmtpMail.SmtpServer = GetCommonConstants("SMTPServer")
SmtpMail.Send(MyMail)
|
|
|
|
| |