none
Email not working after upgrading to Outlook 365 RRS feed

  • Question

  • Hi 

    We have a .Net Application, through which mails are sent 

    The Configuration setting that the Application used earlier is :-

    <add key="EmailServer" value="127.0.0.1"/>

    Now, when the mail server is upgraded to Outlook 365, mails are not working.

    Please suggest any workaround / resolutions for this issue i.e. any change in Email server SMTP or any other changes.

    Thanks,

    David


    DAVID

    Wednesday, January 27, 2016 4:40 PM

Answers

All replies

  • And which line of your code raises an error or behaves unexpectedly?

    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Wednesday, January 27, 2016 5:02 PM
  •  

    Hi Dmitry,

    The below code (2nd line)

    SmtpClient emailClient = new SmtpClient (ConfigurationManager.AppSettings["EmailServer"]);
      emailClient.Send(MyMessage);

    Note :- <add key="EmailServer" value="127.0.0.1"/>


    DAVID

    Wednesday, January 27, 2016 5:38 PM
  • Does this have anything to do with Outlook? You are setting through an SMTP server installed on your local machine. Does it work?

    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Wednesday, January 27, 2016 5:41 PM
  • Hello David,

    The forum is for Outlook related dev questions. Do you automate Outlook in your application for sending emails?

    Wednesday, January 27, 2016 5:44 PM
  • Actually, we dont have any control on the Server. We are assuming that the mails are not working as in that server / local machine - Outlook 365 is installed / upgraded.

    Do you think it is not the case. Any suggestions?


    DAVID

    Wednesday, January 27, 2016 5:46 PM
  • You are not sending to any remote server, much less Office 365  - 127.0.0.1 is localhost.

    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Wednesday, January 27, 2016 5:53 PM
  • ok, here's a question. 

    If we change the Email Server SMTP as  smtp.office365.com , will the emails work ? Advise, if any other things need to be changed?


    DAVID

    Wednesday, January 27, 2016 5:56 PM
  • As long as you use TLS and the right port (587). And you must authenticate as an Office 365 user.

    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Wednesday, January 27, 2016 6:36 PM