Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Rodrigo 27 posts 100 karma points
    Jul 04, 2017 @ 14:15
    Rodrigo
    0

    NewsletterStudio - SMTP Office 365 - Connection NOT established

    Hello, I'm trying to connect an outlook 365 account on the NewsletterStudio umbraco but the connection does not work, the error appears: "Error: Could not connect. Please check settings and credentials. Error message:Mailbox unavailable. The server response was: 5.7.60 SMTP; Client does not have permissions to send as this sender [VI1PR01MB0894.eurprd01.prod.exchangelabs.com]"

    What is the problem? What data i have to put (SMTP and Port)? Could it be another error?

    Waiting for an answer.

    Thank you.

  • siko 24 posts 77 karma points
    Jul 04, 2017 @ 21:27
    siko
    0

    Hello,

    I recently configured my umbraco installation to use office 365 too and found these settings to work; in the site web.config:

       <system.net>
        <mailSettings>
          <smtp from="[email protected]">
            <network host="smtp.office365.com" userName="[email protected]" password="PassWord!!!" port="587" enableSsl="true"  />
          </smtp>
        </mailSettings>
      </system.net>
    

    and in umbracoSettings.config

     <notifications>
      <!-- the email that should be used as from mail when umbraco sends a notification -->
      <email>[email protected]</email>
    </notifications>
    

    If you plan to use notifications (a good way to test if your email settings work, is to register for a notification (on publish for example) and publish.) Make sure your logged on user has a proper (existing) email address registered.

    Hope that helps.

  • Rodrigo 27 posts 100 karma points
    Jul 05, 2017 @ 09:40
    Rodrigo
    0

    Hello. I tried this configuration. I put the email data in web.config and umbracoSettings.config as you said.

    Now, in Umbraco NewsletterStudio in "Senter image description hereend Options" If I send a "Send out a test e-mail", works fine, i receive the email and appears de green label, but if a click on "Send e-mail right now" to a contact group (with one or more contacts), doesn't work, the email/newsletter is not sent and appears the red label with the error: "Error: Could not send due to validation errors in: Could not connect to the SMTP-server with name "smtp.office365.com". Please check your settings.".

    How this is possible?

    Can anyone please help me? Is very urgent. These are the print screens:

  • Rodrigo 27 posts 100 karma points
    Jul 05, 2017 @ 09:41
    Rodrigo
    0

    enter image description here

  • Rodrigo 27 posts 100 karma points
    Jul 05, 2017 @ 09:41
    Rodrigo
    0

    enter image description here

  • Rodrigo 27 posts 100 karma points
    Jul 05, 2017 @ 09:41
    Rodrigo
    0

    enter image description here

  • siko 24 posts 77 karma points
    Jul 05, 2017 @ 10:55
    siko
    0

    Hi Rodrigo,

    If you click 'test connection' in Smtp Settings, gives that an error too?

    I responded with regards to mail settings and office 365, perhaps the package author (Newsletter Studio) needs to step in for the package specific mail handling.

    Hope for quick resolution, fica bem,

    Sijmen

  • Rodrigo 27 posts 100 karma points
    Jul 05, 2017 @ 11:11
    Rodrigo
    0

    Hello.

    Yes, If I click 'test connection' in Smtp Settings, gives me a error too:

    Error: Could not connect. Please check settings and credentials. Error message:Mailbox unavailable. The server response was: 5.7.60 SMTP; Client does not have permissions to send as this sender [AM2PR01MB0882.eurprd01.prod.exchangelabs.com]

    Yes, I hope for a fast solution... Just if I send a "Send out a test e-mail", works fine,

    You can see the erro in the print:

    enter image description here

  • Markus Johansson 1938 posts 5866 karma points MVP 2x c-trib
    Jul 06, 2017 @ 08:45
    Markus Johansson
    101

    Hi!

    Looking at your error message from the server "Client does not have permissions to send as this sender" it seems like the SMTP does not allow you to send with a certain e-mail?

    In this case you have two ways to solved this:

    1. Set up a valid test e-mail

    Change the "sendConnectionTestEmailsTo"-setting in /outgoingEmail in the /config/newsletterStudio.config-file. This setting is used as both sender and receiver when testing the connection to the server. Change this to a valid e-mail on your Office 365-mail server.

        <outgoingEmail .... sendConnectionTestEmailsTo="[email protected]">
          <smtpServers>
              ...
          </smtpServers>
        </outgoingEmail>
    

    When this is set to a valid email the validation of the server will work.

    2. Fallback on web.config

    If you just remove all your SMTP-servers from the /config/newsletterStudio.config-file the package will fallback to the settings in the root web.config (by just creating a new instance of SmtpClient()) - this way you can avoid the error checking before the send out.

    Hope this helps!

  • Rodrigo 27 posts 100 karma points
    Jul 06, 2017 @ 11:59
    Rodrigo
    0

    Hy! Thank you so much! Works now ;)

Please Sign in or register to post replies

Write your reply to:

Draft