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

Forums / Bugs & Issues / Setting up SMTP Server

Setting up SMTP Server

32 posts, 0 answered
  1. Mir Ai
    Mir Ai avatar
    4 posts
    Registered:
    02 Nov 2004
    21 Oct 2008
    Link to this post

    Hello,

    We have setup a test version of SiteFinity using the Sitefinity_3_5_1714_standard_BlankProject.zip download from the website.

    We are trying to setup a new newsletter.  When we go to the newsletter admin screen, we get the following warning at the top of the screen in red:
    "No active Smtp Setting detected, you need an active setting to be able to send newsletters, go to Smtp setting and set one"

    When we go to the SMTP setting page and enter the required fields and submit the page, we get the following error:

    The request failed with the error message:
    --
    <html><head><title>Object moved</title></head><body>
    <h2>Object moved to <a href="/sitefinity/login.aspx?ReturnUrl=%2fSitefinity%2fAdmin%2fServices%2fMailingWebService.asmx">here</a>.</h2>
    </body></html>
    --.


    It looks like the "MailingWebService.asmx" requires authentication.  If we call the service directly, we get the log in screen.  If we log in as an admin user, we can then see the service definition.

    How can we get the SMTP setup page to save the settings so we can setup a new newsletter?

    Thank you
  2. John
    John avatar
    32 posts
    Registered:
    08 Oct 2008
    21 Oct 2008
    Link to this post
    Hi Mir,

    Have you tried updating the System.Net settings of your Web.config? That dialog is a new feature of Sitefinity and it won't come up if the mail settings are configured. Here is what I mean:

    <system.net>
        <mailSettings>
          <smtp from="mailmaster@yourdomain.com">
            <network host="smtp.yourdomain.com" userName="YourUsername" password="YourPassword" port="25" />
          </smtp>
        </mailSettings>
      </system.net>

    Contact your hosting provider for the info to fill this out.

    ~John
  3. Mir Ai
    Mir Ai avatar
    4 posts
    Registered:
    02 Nov 2004
    21 Oct 2008
    Link to this post
    Hi John,

    Thanks for the quick reply.  Yes, we have updated the web.config.
    The Newsletter page is insisting on setting up the SMTP server.
    It looks like it wants a record in the "sf_Notif_SMTPSetting" table.

    Any other suggestions?

    Thanks,
    Mir
  4. Mir Ai
    Mir Ai avatar
    4 posts
    Registered:
    02 Nov 2004
    21 Oct 2008
    Link to this post
    We are past the error now by hacking the database to add the required record into the "sf_Notif_SMTPSetting" table.

    However, now the test message will not send.  Is there a log to check somewhere to see what the error message is?  I'm guessing it's the same problem.  The web service which sends the messages need to be authenticated.

    Thanks,
    Mir
  5. Joe
    Joe avatar
    138 posts
    Registered:
    24 Sep 2012
    23 Oct 2008
    Link to this post
    Hi Mir,

    Thanks for the follow up.

    Have you have changed the virtual directory path for your application? We have a web service created at run time and the application takes its path at run time. If this is the case, All you should do is remove the old DLL for this web service and run you site again and the new DLL will  be created automatically. The DLL path is <site virtual directory path>\ Sitefinity\ServiceAssemblies\3889AC4AF542BAC3C62ABB154E78FEA8.dll Remove “3889AC4AF542BAC3C62ABB154E78FEA8.dll” and run your site again to create the new DLL automatically and it should work fine.

    Note: if you are not able to delete this DLL due to access permissions then you should stop your IIS then delete DLL and restart your IIS.

    I hope this helps. Please let us know if you still experience problems or need further assistance.

    Regards,
    Joe
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  6. Mir Ai
    Mir Ai avatar
    4 posts
    Registered:
    02 Nov 2004
    24 Oct 2008
    Link to this post
    Hi Joe,

    Tried your suggestion.  Removed the DLL and the started the site again.
    If I go into the Newsletter admin and try to send the test message, I get the following error in the Windows Event Viewer.

    It looks like my web services still want the caller to be logged it.

    Any suggestions?
    Thanks,
    Mir

    --------------

    Event code: 3005

    Event message: An unhandled exception has occurred.

    Event time: 10/21/2008 4:48:59 PM

    Event time (UTC): 10/21/2008 8:48:59 PM

    Event ID: 8ae13b4502ae4fabb45cb34195aca6d5

    Event sequence: 5

    Event occurrence: 1

    Event detail code: 0

    Application information:

    Application domain: /LM/W3SVC/1/ROOT-21-128690956372343750

    Trust level: Full

    Application Virtual Path: /

    Application Path: c:\inetpub\wwwroot\

    Machine name: KBDEV

    Process information:

    Process ID: 3972

    Process name: w3wp.exe

    Account name: NT AUTHORITY\NETWORK SERVICE

    Exception information:

    Exception type: WebException

    Exception message: The request failed with the error message:

    --

    <html><head><title>Object moved</title></head><body>

    <h2>Object moved to <a href="/sitefinity/login.aspx?ReturnUrl=An unhandled exception has occurred.fSitefinityAn unhandled exception has occurred.fAdminAn unhandled exception has occurred.fServicesAn unhandled exception has occurred.fMailingWebService.asmx">here</a>.</h2>

    </body></html>

    --.

    Request information:

    Request URL: http://172.16.10.123/Sitefinity/Admin/Modules.aspx?module=Newsletters

    Request path: /Sitefinity/Admin/Modules.aspx

    User host address: 172.16.10.116

    User: admin

    Is authenticated: True

    Authentication Type: Forms

    Thread account name: NT AUTHORITY\NETWORK SERVICE

    Thread information:

    Thread ID: 9

    Thread account name: NT AUTHORITY\NETWORK SERVICE

    Is impersonating: False

    Stack trace: at Telerik.WebServices.DynamicProxy.WebServiceDynamicProxy.InvokeWebMethodCall(Boolean async)

    at Telerik.WebServices.DynamicProxy.WebServiceDynamicProxy.InvokeWebMethodCall()

    at Telerik.Notifications.Services.MailingServiceProxy.VerifySMTPSetting(String smtpHost, Int32 smtpPort, String smtpUsername, String smtpPassword, Boolean smtpSsL, String msgBody)

    at Telerik.Notifications.Newsletters.WebControl.SMTPSettingControl.TestCurrentSettings()

    at Telerik.Notifications.Newsletters.WebControl.SMTPSettingControl.SaveCurrentSetting()

    at Telerik.Notifications.Newsletters.WebControl.SMTPSettingControl.button_Command(Object sender, CommandEventArgs e)

    at System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e)

    at System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument)

    at System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)

    at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)

    at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)

    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

    Custom event details:

    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

  7. Matthew
    Matthew avatar
    38 posts
    Registered:
    24 Jun 2012
    30 Oct 2008
    Link to this post
    Hi Mir,

    I have the same issue (see post: http://www.sitefinity.com/support/forums/support-forum-thread/b1043S-btathm.aspx)

    did you manage to resolve? If so can you post?

    thanks in advance!

    Matt
  8. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    31 Oct 2008
    Link to this post
    Hello,

    We think we have a clue for the problem. We would surely need some time to investigate this deeper, as the problems in the dynamically created assemblies and the web services. We will do our best to provide you with an answer as soon as possible.

    Sincerely yours,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  9. Matthew
    Matthew avatar
    38 posts
    Registered:
    24 Jun 2012
    07 Nov 2008
    Link to this post
    out of interest, what clues does your team currently have in resolving this problem? Does it have anything to do with the following;

    1. Error occurs if a website is hosted on a NAS server and accessed via UNC?
    2. Error occurs if the website is hosted on a cluster of web servers?

    I have found this error loads up on first login of the admin system as well whereas before I thought it was only due to the Newsletter module being on the page.
  10. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    11 Nov 2008
    Link to this post
    Hello Matthew,

    It does anything to do with Case 1 which you described. It is in the way how the web services are being accessed.

    Greetings,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  11. Dave
    Dave avatar
    5 posts
    Registered:
    14 May 2008
    12 Nov 2008
    Link to this post
    I have a very similar issue:
    I deleted the dll file in sitefinity/serviceassemblies folder, however the file does NOT get automatically recreated. Without the file, I get a time out when I log into sitefinity (if I refresh, I am fine after that) and the Newsletter module does not work. 
    If I copy the dll from the /program files/telerik / websites etc. folder, it is the wrong one since that on was created with the localserver.
    I thought it may be a rights issue in the folder, so I made sure in IIS to allow write privaliges, it did not help.
    Any suggestions?
  12. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    13 Nov 2008
    Link to this post
    Hello Dave,

    We have just sent you an answer in the support thread.

    Regards,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  13. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    18 Nov 2008
    Link to this post
    our internal smtp server does not require a username and password for outgoing email, but the server setup is requiring me to input one. I've already setup system.net in web.config and can send emails manually, but can't setup newsletters because of this.

    what do I do? thanks
  14. Bill
    Bill avatar
    53 posts
    Registered:
    28 Jun 2006
    18 Nov 2008
    Link to this post
    Need to post the solution public which was sent to the first user questioning this error.  Thank you
  15. Bill
    Bill avatar
    53 posts
    Registered:
    28 Jun 2006
    18 Nov 2008
    Link to this post
    Deleting the dll seems to have worked the second time I tried it, unless I originally suffered from a typo in my setup attempts.

    If your mail server is using domain identifier for users be sure to use user@domain.com  for the user and supply the password for that user even though you are not using authentication locally to get passed missing password field validation.
  16. IT
    IT avatar
    52 posts
    Registered:
    30 Sep 2008
    20 Nov 2008
    Link to this post
    I was able to resolve the issue by deleting the dll as well.
  17. Mike
    Mike avatar
    208 posts
    Registered:
    10 Dec 2007
    12 Dec 2008
    Link to this post
    I'm having the same trouble that Dave had.  If I leave the 3889AC4AF542BAC3C62ABB154E78FEA8.dll in, I get the error:

    the System.IO.FileNotFoundException: Could not load file or assembly '3889AC4AF542BAC3C62ABB154E78FEA8

    If I delete the DLL, then I get the error:

    System.Net.WebException: The request failed with the error message:
    --
    <html><head><title>Object moved</title></head><body>
    <h2>Object moved to <a href="/sitefinity/login.aspx?ReturnUrl=%2fSitefinity%2fAdmin%2fServices%2fMailingWebService.asmx%3fWSDL">here</a>.</h2>
    </body></html>


    which is trying to authenticate.

    I'm trying to set up Sitefinity on Mosso, which is a cloud-based hosting environment.  I've set the web application identity to impersonate our user account, so that ASP.NET can write to the filesystem (as instructed by the Mosso FAQ at http://help.mosso.com/article.php?id=262 )

    Everything seems to be working except the newsletter module. 

    What is wrong?

    Thanks in advance!
    Mike
  18. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    15 Dec 2008
    Link to this post
    Hello,

    Could you please try to enable anonymous authentication for your project, and then deleting the assembly?

    Kind regards,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  19. Mike
    Mike avatar
    208 posts
    Registered:
    10 Dec 2007
    15 Dec 2008
    Link to this post
    Hi Georgi,

    Thanks for your response.  I'm not quite sure what you mean.  Are you saying to enable anonymous authentication in IIS for the project?  Since I don't have remote access to the server, whatever I do would have to be done within the web.config.  Or is this a setting in the Admin area?

    Thanks,
    Mike Sharp
  20. wg_web_moffitt
    wg_web_moffitt avatar
    6 posts
    Registered:
    07 May 2007
    15 Dec 2008
    Link to this post
    Same Issue as SelArom: our mail server does not require authentication; it is restricted by IP. I am unable to set up the SMTP server because username and password are required. Having our exchange team set up a new user for this purpose is not an option.

    I have tried manually setting the smtp server in system.net/mailSettings section of the web.config, but this does not work either.

    Please advise.
  21. John
    John avatar
    2 posts
    Registered:
    02 Dec 2008
    15 Dec 2008
    Link to this post
    Greetings:

    I am seeing the same behavior as others. But when I delete the Sitefinity\ServiceAssemblies\3889AC4AF542BAC3C62ABB154E78FEA8.dll  and run the site again, it does not ever create a new DLL. Can someone please provide a remedy or, failing that, some insight into why this is occurring?

    Many thanks,
    John Wilson
  22. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    18 Dec 2008
    Link to this post
    Hi,

    Mark and John,
    Could you please try to create run the newsletter locally, in order to generate the assembly, then upload it to the live site? This operation might be restricted by the server security policy. It is important the assembly to be created with the same Sitefinity version, as the one you use in your live site.

    William,
    Could you please paste the smtp settings that you are using?


    Kind regards,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  23. John
    John avatar
    2 posts
    Registered:
    02 Dec 2008
    18 Dec 2008
    Link to this post
    Our server is running version 3.5 SP1, upgraded from version 3.2.

    I downloaded Sitefinity version 3.5 SP1 to my local machine, installed it, and copied the ServiceAssemblies DLL to the server. All functionality of Newsletters is available in the Modules Admin interface, but newsletters are never actually sent.

    What should I try next?

    Thanks again,
    John
  24. wg_web_moffitt
    wg_web_moffitt avatar
    6 posts
    Registered:
    07 May 2007
    18 Dec 2008
    Link to this post
    This is from the Web.Config:

    <system.net>
      <mailSettings>
       <smtp from="no-reply@milesformoffitt.com">
        <network host="mailint" />
       </smtp>
      </mailSettings>
     </system.net>

    As you can see, I do not specify a username or password, or a port (letting it use the default of 25).

    Despite this entry in the Web.Config, the Newsletters module insists that I need to create an SMTP server entry. However, it will not allow me to create an entry with an empty username and password, and as I said previously, creating a login on the Exchange server solely for SMTP is not an option.

    So, how do I create an SMTP entry for the Newsletters module where the username and password are empty?
  25. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    20 Dec 2008
    Link to this post
    Hi William,

    Username and password are required for Newsletter module. We will consider the implementation of the whole module due to some problems with it and will probably provide options for setting up servers without password and username.

    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  26. Frank
    Frank avatar
    4 posts
    Registered:
    07 Dec 2008
    26 Apr 2009
    Link to this post
    Hi Ivan,

    I've been evaluating/testing 3.6 on a GoDaddy shared hosting account and the required userId/password is an issue with this provider setup as well.

    Keep up all the excellent work you guys have done with the product; and  I look forward to your progress toward solving this issue. 

    Thanks,
    Frank
  27. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    29 Apr 2009
    Link to this post
    Hi Frank,

    We follow the standard implementation of <mailSettings> Element (Network Settings). Whether you will use  a password and an username or not depends on the smtp server you have.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  28. Frank
    Frank avatar
    4 posts
    Registered:
    07 Dec 2008
    02 May 2009
    Link to this post
    Hi Ivan,

    While the link was not very userful.,  your confidence in the reply gave me additional incentive to revisit the Newsletter SMTP setup.

    I was able to activate the SMTP setup by providing a fake username and password.  Also, the username is required to follow an email format, such as user@website.com.

    I hope this will help others wishing to use the Newsletter module on GoDaddy or any other system where the username and password is not required on the SMTP connection.

    Again, I appreciate your follow-up and all the good work you and your team give in supporting Sitefinity.

    Thanks,

    Frank
  29. Johnny
    Johnny avatar
    45 posts
    Registered:
    08 Mar 2009
    19 Oct 2009
    Link to this post
    Hi

    "Username and password are required for Newsletter module. We will consider the implementation of the whole module due to some problems with it and will probably provide options for setting up servers without password and username."

    I´m wondering if the newsletter module can be fully functional without smtp authentication in the latest sitefinity version? (3.7 sp1) If not, are you still working on providing an option for setting up servers without password and username? I really hope so, since I´ve having trouble finding good hosting partners that offers smtp authentication.

    Keep up the good work!

    //Johnny
  30. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    19 Oct 2009
    Link to this post
    Hello Johnny,

    I regret to inform you that you will not be able to set the SMTP settings without typing your username and password. The username and password are parameters of SendMail method that is called from MailingService class. To fix the problem we should change some of the logic of these methods so we could pass String.Empty values.

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Register for webinar
32 posts, 0 answered
1 2