Page view counter

SMTP error Please help

Last post 05-19-2006 8:51 PM by mpskelton. 10 replies.

Sort Posts:

  • SMTP error Please help

    05-11-2006, 8:55 AM
    • Loading...
    • eureka
    • Joined on 08-31-2004, 2:18 PM
    • Liverpool (UK)
    • Posts 242
    • Points 1,046

    Hello

    For a number of weeks I have been struggling to get my SMTP working. 

    I am using asp.net 1.1 and DNN 3.2.2 with SQL Server 2000

    I have scoured the DNN search and Google but I have not yet found a solution. 

    My hosting provider insists that they have allocated the correct settings and everything is in working order, that the error is with DNN coding.

    I am able to send and receive emails directly and even via using the feedback form on the site.

    Yet despite this on every Host SMTP test I keep seeing this error:

    Could not access 'CDO.Message' object

    The error log file is:

    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:

     

    I have since installed CATALook  and tried to send email through the module, I was taken to this error page:

     

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.MissingMethodException: ?

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 

    Stack Trace:


    [MissingMethodException: ?]
       CATALooK.AdminUtils.SendEmailMessage(Int32 PortalID, String strFrom, String strTo, String strBcc, String strSubject, String strBody, String strAttachment, String strBodyType) +0
       CATALooK.StoreAdmin.cmdEmail_Click(Object sender, EventArgs e)
       System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) +108
       System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +138
       System.Web.UI.Page.ProcessRequestMain() +1292

    [PageLoadException: ?]
       DotNetNuke.Services.Exceptions.Exceptions.ProcessPageLoadException(Exception exc, String URL) +344
       DotNetNuke.Framework.PageBase.Page_Error(Object Source, EventArgs e) +364
       System.Web.UI.TemplateControl.OnError(EventArgs e) +109
       System.Web.UI.Page.HandleError(Exception e) +68
       System.Web.UI.Page.ProcessRequestMain() +2100
       System.Web.UI.Page.ProcessRequest() +218
       System.Web.UI.Page.ProcessRequest(HttpContext context) +18
       System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +179
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87

     


    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032

    I need help, can anybody please advise what I might do to solve this problem. I am not a programmer and I am unsure what I should edit, in case I make things worse.

    Thanks.

    Regards

    Lynn

    Regards

    Lynn

  • Re: SMTP error Please help

    05-11-2006, 11:38 AM
    • Loading...
    • J7Mitch
    • Joined on 10-19-2002, 1:23 PM
    • Posts 2,632
    • Points 13,145
    • TrustedFriends-MVPs

     

    Make sure that your Host Setings email and the email address for the Administrator of the portal are valid addresses.

    John M.

    DotNetNuke Module for Performance
  • Re: SMTP error Please help

    05-11-2006, 12:38 PM
    • Loading...
    • eureka
    • Joined on 08-31-2004, 2:18 PM
    • Liverpool (UK)
    • Posts 242
    • Points 1,046
    J7Mitch:

     

    Make sure that your Host Setings email and the email address for the Administrator of the portal are valid addresses.

    Hello Mitch

    Thanks for the reply.

    I have just re-checked just to make sure.

    Yes all emails are valid, I can send, recieve and view via  logging in on my host control panel.

    Lynn

    Regards

    Lynn

  • Re: SMTP error Please help

    05-11-2006, 3:57 PM
    • Loading...
    • eureka
    • Joined on 08-31-2004, 2:18 PM
    • Liverpool (UK)
    • Posts 242
    • Points 1,046
    eureka:
    J7Mitch:

     

    Make sure that your Host Setings email and the email address for the Administrator of the portal are valid addresses.

    Hello Mitch

    Thanks for the reply.

    I have just re-checked just to make sure.

    Yes all emails are valid, I can send, recieve and view via  logging in on my host control panel.

    Lynn

     

    I forgot me mention, although I can only access emails via the hosting provider ( JodoHost) control panel ( not via host on my site) I can send and recieve via the panel of the hosting provider site, I still am unable to get the SMPT to configure on my own site. 

     It is vital to get the emails working, the site is becoming an expensive white elephant in time and money and is completley useless without it. We have been without SMPT emails from the start and I have spent weeks trying to find the solution. 

    Any more suggestions, please.

    Lynn

    Regards

    Lynn

  • Re: SMTP error Please help

    05-11-2006, 4:22 PM
    • Loading...
    • J7Mitch
    • Joined on 10-19-2002, 1:23 PM
    • Posts 2,632
    • Points 13,145
    • TrustedFriends-MVPs

     

    What are the smtp settings under Host > Advanced Settings > SMTP Settings

    Are you using Authentication?

    John M.

    DotNetNuke Module for Performance
  • Re: SMTP error Please help

    05-11-2006, 4:53 PM
    • Loading...
    • eureka
    • Joined on 08-31-2004, 2:18 PM
    • Liverpool (UK)
    • Posts 242
    • Points 1,046
    J7Mitch:

     

    What are the smtp settings under Host > Advanced Settings > SMTP Settings

    Are you using Authentication?

     

    Hi J7Mitch

    Thanks for the reply

    SMTP Settings:


    SMTP Server:    mail.mywebsite.com

    SMTP Authentication:    Basic


    SMTP Username:   HostProviderUserName@mywebsite.com

    SMTP Password:  HostProviderPassword 

     

    Thanks

    Lynn

     

    Regards

    Lynn

  • Re: SMTP error Please help

    05-18-2006, 2:54 PM
    • Loading...
    • mpskelton
    • Joined on 05-18-2006, 2:43 PM
    • Posts 3
    • Points 15
    I am getting an almost identical error:
    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 (0x8004020F): The server rejected one or more recipient addresses. The server response was: 551 Bad Recipient --- End of inner exception stack trace ---


    The SMTP server is working fine, as I can send and receive emails from a remote client using Outlook Express/Thunderbird etc. using the same email address as for the SuperUser/HOST login.

    The 'Test' function for the mailserver on the Host Settings page works fine: it sends and delivers a message to the email address listed above there on the same page ('Host Email').

    However, the Password Reminder button does not send an email. The operation appears to complete, but in the Log Viewer, the message above is recorded (and being ignored by the Password Reminder page).

    We recently moved hosting companies, and it was working fine with the previous one.


    Any ideas?

    Thanks!
  • Re: SMTP error Please help

    05-19-2006, 4:06 AM
    • Loading...
    • eureka
    • Joined on 08-31-2004, 2:18 PM
    • Liverpool (UK)
    • Posts 242
    • Points 1,046

    Hello mdskelton

    My hosting provider insisted the fault was on my website and everything was working perfectly with them.

    I searched for several weeks of trying to find a solution, it is not much help to you but nothing helped. I gave my hosting provider  (HOST) permission to see for themselves as they seemed to think that I didn't have a problem. Only then did they appreciate the problem and suggested I used localhost instead of mail.mywebsite.com for the time being.  It worked.

    SMTP Server:    localhost

    SMTP Authentication:    Basic

    SMTP Username:   HostProviderUserName@mywebsite.com

    SMTP Password:  HostProviderPassword 

    Only yesterday, did my hosting provider admit that the fault was with their server all the time and has only now rectified the fault.

    My SMTP is now working as intended using : mail.mywebsite.com instead of localhost.

    I have asked them what exactly caused the problem, but I have yet to receive a reply.

    Providing all your setting are correct, valid email etc., and because your SMTP worked before, I would suggest that you ask your new hosting provider to re-check the settings on their server.

    Sorry I don't have a fix it solution for you. Good luck.

     

    Regards

    Lynn

    Regards

    Lynn

  • Re: SMTP error Please help

    05-19-2006, 9:25 AM
    • Loading...
    • mpskelton
    • Joined on 05-18-2006, 2:43 PM
    • Posts 3
    • Points 15
    Thanks Lynn

    It looks like I am in the same situation as you. When this gets resolved, I'll post the fix here.

    M
  • Re: SMTP error Please help

    05-19-2006, 10:03 AM
    • Loading...
    • J7Mitch
    • Joined on 10-19-2002, 1:23 PM
    • Posts 2,632
    • Points 13,145
    • TrustedFriends-MVPs

     

    Those settings should work.

    If you want to give me access to your environment, you can contact me through the e-mail on my profile or private message and I'll see if I can figure out why it isn't working.

    John M.

    DotNetNuke Module for Performance
  • Re: SMTP error Please help

    05-19-2006, 8:51 PM
    • Loading...
    • mpskelton
    • Joined on 05-18-2006, 2:43 PM
    • Posts 3
    • Points 15
    Hi all

    There were several problems.

    The main SMTP server on the machine could not be configured to talk to web applciations, and a second SMTP server program was available to do this, on another port (i.e. not port 25).

    HOWEVER, it turns out that DNN does not allow you to specify an SMTP server on a port except port 25. In other words, a setting like this will not have the desired effect:
    localhost:587
    The port is ignored by the System.Web.Mail.SmtpMail class as used by DNN. I checked the source for DNN 3.2.2, and the port number is NOT parsed out from the servername string. This seems to me to be a serious limitation. A line or two of extra code would enable mail sending on alternative ports: parse out the port number, and if its there, set the port explicitly for the mail message before sending.

    So I was left having to use a server on the default port 25, but with only a single machine it's tricky to get SmartHost relaying working properly (perhaps impossible).

    In the end, I disabled the two existing SMTP servers, and installed MailEnable:
    http://www.mailenable.com/standard_edition.asp
    This is free and very easy to use and configure. Crucially, it can listen on two different ports, and had no limitation wrt web applications.

    I highly recommend it if you are having similar problems.


    M
Page 1 of 1 (11 items)