Announcement

Collapse
No announcement yet.

Can't send Emails over Office365

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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:
    https://forum.cloudron.io/topic/1950...mail-ssl-error

    Sending Mail from other applications works.

    Thanks Jens

  • #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


    • #3
      Originally posted by Maximus View Post
      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


      • #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


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

          Comment


          • #6
            Maybe the problem is that SMTP Auth is not checked?

            Comment


            • #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.

              Comment


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

                Comment


                • #9
                  Hello,
                  this work very well for us.
                  my one cent question : I don't use SMTP
                  Regards

                  Comment


                  • #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


                    • #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...
                      X