dawidd6 / action-send-mail

:gear: A GitHub Action to send an email to multiple recipients
MIT License
443 stars 186 forks source link

Error ssl3_get_record wrong version number #187

Closed clemdesign closed 7 months ago

clemdesign commented 8 months ago

When I run the action job, I have this error:

140327535802304:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:332:

With this job configuration:

      - name: Send mail
        uses: dawidd6/action-send-mail@v3
        with:
          server_address: smtp.gmail.com
          server_port: 587
          secure: true
          username: ${{secrets.MAIL_USERNAME}}
          password: ${{secrets.MAIL_PASSWORD}}
          subject: Test
          to: email@domain.ext
          from: Test User
          body: Test
valdearg commented 7 months ago

Did you ever get a solution to this one? Also running into exactly the same issue.

clemdesign commented 7 months ago

Yes @valdearg , just set server_port: 465 instead , contrary to what suggests Gmail SMTP configuration.

jbelien commented 2 weeks ago

Got the same issue today trying to use Azure Communication Service.

Error: 40184D5F147F0000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:354:

Switching to port 465 is not an option, I've received a connection timeout (that matches what is in the documentation).