dawidd6 / action-send-mail

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

Invalid login: 535 5.7.8 Error: authentication failed: authentication failed #208

Open Rapter1990 opened 2 months ago

Rapter1990 commented 2 months ago

I try to send test report of my node.js project with github action automatically.

Here is the relevant part of github action

- name: Send test report email
        uses: dawidd6/action-send-mail@v3
        with:
          server_address: smtp.protonmail.ch
          server_port: 587
          username: ${{ secrets.EMAIL_USERNAME }}
          password: ${{ secrets.EMAIL_PASSWORD }}
          subject: Test Report
          body: Test results attached.
          to: <mail_address>
          from: ${{ secrets.EMAIL_USERNAME }}
          attachments: report.png

I always get the error shown below

Invalid login: 535 5.7.8 Error: authentication failed: authentication failed

EMAIL_USERNAME refers to my email of proton.me EMAIL_PASSWORD refers to my email's password of proton.me

I also tried to use username of proton.me account but nothing changed. I still got the same error.

Where is the problem? How can I fix it?