1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / Newsletter > SMTP settings > Send test message Return code: 404

Newsletter > SMTP settings > Send test message Return code: 404

6 posts, 0 answered
  1. Mayvelous
    Mayvelous avatar
    43 posts
    Registered:
    26 May 2011
    08 Jul 2011
    Link to this post
    Hi,

    I'm getting "Return code: 404" error on the Newsletter SMTP settings > Test SMTP settings "Send test message" button feature.

    I've checked the following posts and searched for the solution before posting this.
    http://www.sitefinity.com/devnet/forums/sitefinity-3-x/bugs-issues/smtp-save-fails-with-404.aspx
    http://www.sitefinity.com/devnet/forums/sitefinity-3-x/set-up-installation/404-error-when-updating-newsletter-settings.aspx

    I've also tried to change the "host headers" to "Default" as mentioned in the above posts by following these steps: http://technet.microsoft.com/en-us/library/cc753195%28WS.10%29.aspx
    but it throws 404 file not found error and my whole site went down after. Please see attached files.

    I'm on IIS7, WinServer 08 R2 Standard. Sitefinity Version : 4.1.1405.0

    Is there anything else I need to do in order to test the smtp setting please?

    Thanks.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    08 Jul 2011
    Link to this post
    Hello May,

    Please enable service tracer log and see the actual exception

    http://msdn.microsoft.com/en-us/library/ms732023.aspx

    All the best,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. HRC
    HRC avatar
    44 posts
    Registered:
    16 Mar 2009
    28 Sep 2011
    Link to this post
    Ivan - can you give more detail as to how to enable some logging or tracing for Sitefinity?  I am absolutely stumped with the SMTP settings.  I have provided Sitefinity with the details for two valid SMTP relays (one internal, one external) and no matter what the test returns 404 each time.
  4. HRC
    HRC avatar
    44 posts
    Registered:
    16 Mar 2009
    28 Sep 2011
    Link to this post
    Nothing in \App_Data\Sitefinity\Logs is of any help - no errors are being logged when Sitefinity cannot connect.  
  5. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    29 Sep 2011
    Link to this post
    Hi Hrc,

    Ok, can you create a simple user control with the code below( replace some of the variables depending on your settings) and let me know if you can receive an email

                   var smtpClient = new SmtpClient();
                    smtpClient.Host = "your host here";
                    smtpClient.Port = 25;
                    smtpClient.Credentials = new NetworkCredential("SmtpUsername", "SmtpPassword");
                    var testMessage = new MailMessage();
                    testMessage.To.Add(new MailAddress("TestEmailAddress"));
                    testMessage.Subject = "test your email";
                    testMessage.From = new MailAddress("type email from");
                    testMessage.Body = "this is a test email";
                    testMessage.IsBodyHtml = false;
                    smtpClient.Send(testMessage);

    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  6. HRC
    HRC avatar
    44 posts
    Registered:
    16 Mar 2009
    29 Sep 2011
    Link to this post
    Figured this out.

    Using Chrome network debugging I looked at what this Email Campaigns SMTP Settings screen was trying to do while sending the test email out.  Turns out it was looking for:

    /Sitefinity/Services/Newsletters/Settings.svc/smtptest/

    A quick check of that folder revealed that Settings.svc wasn't there.  So in trying to figure out how this happened in the first place - does the Sitefinity Project setup *include* all these services in the project file (*.proj)?  I ask this because we certainly didn't *exclude* these files.  If the files aren't included in the project, then you won't get them published.

    I have seen others reporting this 404 error and now it makes sense - 404 means the file is not there - which it wasn't.

    Hope this helps someone else, because I've wasted countless hours.


6 posts, 0 answered