Can't send Emails over Office365

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JayBee4pl
    Member
    • Oct 2019
    • 59

    Can't send Emails over Office365

    Hi, since some days Email Sending from personal Mail Accounts dont work.
    Following Error in Log:
    Code:
    [2019-10-11 06:44:48] Espo.WARNING: E_WARNING: fwrite(): SSL operation failed with code 1. OpenSSL Error messages: error:140D00CF:SSL routines:SSL_write:protocol is shutdown {"code":2,"message":"fwrite(): SSL operation failed with code 1. OpenSSL Error messages:\nerror:140D00CF:SSL routines:SSL_write:protocol is shutdown","file":"/app/code/5.7.2/vendor/zendframework/zend-mail/src/Protocol/AbstractProtocol.php","line":260,"context":{"request":"QUIT"}} []
    [2019-10-11 06:44:48] Espo.WARNING: E_WARNING: fwrite(): SSL operation failed with code 1. OpenSSL Error messages: error:140D00CF:SSL routines:SSL_write:protocol is shutdown {"code":2,"message":"fwrite(): SSL operation failed with code 1. OpenSSL Error messages:\nerror:140D00CF:SSL routines:SSL_write:protocol is shutdown","file":"/app/code/5.7.2/vendor/zendframework/zend-mail/src/Protocol/AbstractProtocol.php","line":260,"context":{"request":"QUIT"}} []
    [2019-10-11 06:44:48] Espo.ERROR: (0) Could not read from smtp.office365.com; POST /api/v1/Email/action/sendTestEmail; line: 306, file: /app/code/5.7.2/vendor/zendframework/zend-mail/src/Protocol/AbstractProtocol.php
    I made a Forum entry in the Cloudron Fourm. This is the Software which runs our server:
    Hi, since one or two days we cant send Mails from the crm. I get the following in the logs: [2019-10-10 09:44:53] Espo.ERROR: (0) Could not read from smtp.of...


    Sending Mail from other applications works.

    Thanks Jens
  • Maximus
    Senior Member
    • Nov 2018
    • 2731

    #2
    Hello,
    smtp.office365.com is listening connection on port 587 or 25 (TLS/StartTLS) https://docs.microsoft.com/en-us/exc...ent-submission.
    So SSL on port 465 does not support SMTP.

    Comment

    • JayBee4pl
      Member
      • Oct 2019
      • 59

      #3
      Originally posted by Maximus
      Hello,
      smtp.office365.com is listening connection on port 587 or 25 (TLS/StartTLS) https://docs.microsoft.com/en-us/exc...ent-submission.
      So SSL on port 465 does not support SMTP.
      I Know. Why are you writing this?

      Comment

      • Maximus
        Senior Member
        • Nov 2018
        • 2731

        #4
        Because sometimes the reason of the errors could be the bad configurations.
        I have tested smtp.office365.com on my Personal Email Account and a test email was successfully sent and recived.

        Comment

        • JayBee4pl
          Member
          • Oct 2019
          • 59

          #5
          Other apps (containers) on this Server can send Mails over Office365. Only EspoCRM gets this PHP error.

          Comment

          • yuri
            Member
            • Mar 2014
            • 8451

            #6
            Maybe the problem is that SMTP Auth is not checked?
            If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

            Comment

            • yuri
              Member
              • Mar 2014
              • 8451

              #7
              We tested and it worked. If other mail apps works on your hosting it doesn't mean that EspoCRM should also work. Different apps may use different libraries.
              If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

              Comment

              • Maximus
                Senior Member
                • Nov 2018
                • 2731

                #8
                I have reproduced this error. It occurs when SMTP Auth is unchecked.

                Comment

                • item
                  Active Community Member
                  • Mar 2017
                  • 1476

                  #9
                  Hello,
                  this work very well for us.
                  my one cent question : I don't use SMTP
                  Regards
                  If you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks.​

                  Comment

                  • JayBee4pl
                    Member
                    • Oct 2019
                    • 59

                    #10
                    Hi Maximus, thanks for the info. I will try to enable SMTP Auth.
                    Background: I registerd our Server as a trusted Host in the Office365 System so i need no auth if the Mail comes from our Server.

                    Regards

                    Jens

                    Comment

                    • JayBee4pl
                      Member
                      • Oct 2019
                      • 59

                      #11
                      Hi,
                      if i activate the SMTP Auth part i can send Mails. As it is no problem to enter SMTP Data the problem is solved for me.
                      For Group Mailadresses the smtp data is requiered if i want to use this acount as "from" adress in emails.
                      Should i mark this port as "solved"?

                      Comment

                      Working...