[Bug]: SMTP issue, no email sent #620

Closed
opened 2026-02-04 20:35:22 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @IoSonoPiero on GitHub (Dec 16, 2024).

Where is the problem occurring?

I encountered the problem while interacting with the server (Backend)

What browsers are you seeing the problem on?

Chrome, Firefox, Microsoft Edge

Current behaviour

After searching and reading other issues, I'm unable to let e-mails to work.
In docker-compose.yml,
I filled the fields with values that I use with other containers and I'm unable to send emails.
Using:
# Email Notifications (https://nodemailer.com/smtp/)
- SMTP_HOST=smtp.gmail.com
- SMTP_PORT=465
- SMTP_SECURE=true
- SMTP_USER=name.surname@gmail.com
- SMTP_PASSWORD=secretpassword
- SMTP_FROM="Planka" name.surname@gmail.com
- SMTP_NAME="name.surname@gmail.com"
I got:
[E] Error sending email: Error: Connection closed unexpectedly

Changing port to 587, with SMTP_SECURE tried with false and true,
I got:
[E] Error sending email: Error: A09D15F0BDF00000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:354:

I use the same parameters with other containers, and the email work.

Desired behaviour

E-mail works with parameters used in other containers that sent emails.

Steps to reproduce

I compiled and double checked values, and every time I add a comment between two users,
I got:
[E] Error sending email: Error: Connection closed unexpectedly

Other information

No response

Originally created by @IoSonoPiero on GitHub (Dec 16, 2024). ### Where is the problem occurring? I encountered the problem while interacting with the server (Backend) ### What browsers are you seeing the problem on? Chrome, Firefox, Microsoft Edge ### Current behaviour After searching and reading other issues, I'm unable to let e-mails to work. In docker-compose.yml, I filled the fields with values that I use with other containers and I'm unable to send emails. Using: # Email Notifications (https://nodemailer.com/smtp/) - SMTP_HOST=smtp.gmail.com - SMTP_PORT=465 - SMTP_SECURE=true - SMTP_USER=name.surname@gmail.com - SMTP_PASSWORD=secretpassword - SMTP_FROM="Planka" name.surname@gmail.com - SMTP_NAME="name.surname@gmail.com" I got: [E] Error sending email: Error: Connection closed unexpectedly Changing port to 587, with SMTP_SECURE tried with false and true, I got: [E] Error sending email: Error: A09D15F0BDF00000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:354: I use the same parameters with other containers, and the email work. ### Desired behaviour E-mail works with parameters used in other containers that sent emails. ### Steps to reproduce I compiled and double checked values, and every time I add a comment between two users, I got: [E] Error sending email: Error: Connection closed unexpectedly ### Other information _No response_
OVERLORD added the help wanted label 2026-02-04 20:35:22 +03:00
Author
Owner

@IoSonoPiero commented on GitHub (Dec 19, 2024):

Hello people, I solved in this way, if someone has the same issue with Gmail.

  - SMTP_HOST=smtp.gmail.com
  - SMTP_PORT=465
  - SMTP_SECURE=true
  - SMTP_USER=yourusername@gmail.com
  - SMTP_PASSWORD=password_for_application
  - SMTP_FROM="Kanboard Notification" noreply@example.com
  - SMTP_NAME=gmail.com

Hope this help!

@IoSonoPiero commented on GitHub (Dec 19, 2024): Hello people, I solved in this way, if someone has the same issue with Gmail. - SMTP_HOST=smtp.gmail.com - SMTP_PORT=465 - SMTP_SECURE=true - SMTP_USER=yourusername@gmail.com - SMTP_PASSWORD=password_for_application - SMTP_FROM="Kanboard Notification" noreply@example.com - SMTP_NAME=gmail.com Hope this help!
Author
Owner

@IoSonoPiero commented on GitHub (Dec 19, 2024):

Hello people, I solved in this way, if someone has the same issue with Gmail.

  - SMTP_HOST=smtp.gmail.com
  - SMTP_PORT=465
  - SMTP_SECURE=true
  - SMTP_USER=yourusername@gmail.com
  - SMTP_PASSWORD=password_for_application
  - SMTP_FROM="Kanboard Notification" noreply@example.com
  - SMTP_NAME=gmail.com

Hope this help!

@IoSonoPiero commented on GitHub (Dec 19, 2024): Hello people, I solved in this way, if someone has the same issue with Gmail. - SMTP_HOST=smtp.gmail.com - SMTP_PORT=465 - SMTP_SECURE=true - SMTP_USER=yourusername@gmail.com - SMTP_PASSWORD=password_for_application - SMTP_FROM="Kanboard Notification" noreply@example.com - SMTP_NAME=gmail.com Hope this help!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/planka#620