dawidd6 / action-send-mail

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

Error: 140372281395136:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:332: #169

Closed octa2599 closed 1 year ago

octa2599 commented 1 year ago

Hi,

I get this error while trying to send an email:

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

I tested my connections in an openssl terminal and everything works. This is what I am using in my workflow:

Send email

  - name: Send Email
    uses: dawidd6/action-send-mail@v3
    with:   
      connection_url: smtp+starttls://${{secrets.USER_MAIL}}:${{secrets.PASSWORD_USER}}@${{secrets.MAIL_SERVER}}:587
      subject: Workflow run
      to: test@gmail.com
      from: Test
      body: Workflow

Does anyone has any idea what could be the issue? Thanks!

joshpeterson commented 1 year ago

I ran into this same error. This page was helpful to sort it out.

It turns out I had my port numbers wrong. To send from a gmail account, I used the smtp:// URL and port 587.

I hope this helps you @octa2599!

dawidd6 commented 1 year ago

Solution provided, thanks @joshpeterson. Closing.