SMTP no work #446

Open
opened 2026-02-04 19:34:19 +03:00 by OVERLORD · 23 comments
Owner

Originally created by @DeAlexPesh on GitHub (Mar 22, 2024).

When should letters send?
No error, but and no letters...

SMTP_HOST=smtp.yandex.ru
SMTP_PORT=465
SMTP_SECURE=true
SMTP_USER=user@domain.ru
SMTP_PASSWORD=PaSsWoRd
SMTP_FROM=user@domain.ru
Originally created by @DeAlexPesh on GitHub (Mar 22, 2024). When should letters send? No error, but and no letters... ``` SMTP_HOST=smtp.yandex.ru SMTP_PORT=465 SMTP_SECURE=true SMTP_USER=user@domain.ru SMTP_PASSWORD=PaSsWoRd SMTP_FROM=user@domain.ru ```
Author
Owner

@meltyshev commented on GitHub (Mar 22, 2024):

For now, emails are sent if you are subscribed to a card and that card has been moved to another list or a comment has been left on it. No other notification have been added yet, but we plan to finalize them.

@meltyshev commented on GitHub (Mar 22, 2024): For now, emails are sent if you are subscribed to a card and that card has been moved to another list or a comment has been left on it. No other notification have been added yet, but we plan to finalize them.
Author
Owner

@tomlyo commented on GitHub (Mar 22, 2024):

I was testing this for a while until I realized they wouldn't send when you're commenting on your own cards. Impersonated another user to test and all was well.

@tomlyo commented on GitHub (Mar 22, 2024): I was testing this for a while until I realized they wouldn't send when you're commenting on your own cards. Impersonated another user to test and all was well.
Author
Owner

@DeAlexPesh commented on GitHub (Mar 25, 2024):

but we plan to finalize them.

  • create,block,remove user (and over)
  • create task for user (for not register same as invite)
@DeAlexPesh commented on GitHub (Mar 25, 2024): > but we plan to finalize them. - create,block,remove user (and over) - create task for user (for not register same as invite)
Author
Owner

@DeAlexPesh commented on GitHub (Mar 25, 2024):

Impersonated another user to test and all was well.

hm. no work for another user...

@DeAlexPesh commented on GitHub (Mar 25, 2024): > Impersonated another user to test and all was well. hm. no work for another user...
Author
Owner

@casem commented on GitHub (Mar 28, 2024):

It's not working for me either. I can see in the planka logs the following whenever I comment on a card:
2024-03-27 22:41:17 [E] undefined

@casem commented on GitHub (Mar 28, 2024): It's not working for me either. I can see in the planka logs the following whenever I comment on a card: `2024-03-27 22:41:17 [E] undefined`
Author
Owner

@meltyshev commented on GitHub (Mar 28, 2024):

It's not working for me either. I can see in the planka logs the following whenever I comment on a card: 2024-03-27 22:41:17 [E] undefined

Hm, that's weird, for some reason Nodemailer doesn't throw an error in your case, but when I'm trying with wrong settings, the error is displayed correctly.

try {
  const info = await transporter.sendMail({
    ...inputs,
    from: sails.config.custom.smtpFrom,
  });

  sails.log.info('Email sent: %s', info.messageId);
} catch (error) {
  sails.log.error(error); // <- Here
}
@meltyshev commented on GitHub (Mar 28, 2024): > It's not working for me either. I can see in the planka logs the following whenever I comment on a card: `2024-03-27 22:41:17 [E] undefined` Hm, that's weird, for some reason Nodemailer doesn't throw an error in your case, but when I'm trying with wrong settings, the error is displayed correctly. ```js try { const info = await transporter.sendMail({ ...inputs, from: sails.config.custom.smtpFrom, }); sails.log.info('Email sent: %s', info.messageId); } catch (error) { sails.log.error(error); // <- Here } ```
Author
Owner

@casem commented on GitHub (Mar 28, 2024):

Hm, that IS weird. I believe I have it set up correctly by using the docker compose in the repo as an example but since I’m not getting a detailed error, I can’t tell what’s wrong.

@casem commented on GitHub (Mar 28, 2024): Hm, that IS weird. I believe I have it set up correctly by using the docker compose in the repo as an example but since I’m not getting a detailed error, I can’t tell what’s wrong.
Author
Owner

@sabbath88 commented on GitHub (Apr 11, 2024):

Have same issue. I am trying to play with notifications, but no single was sent.
I am using 1.16.3 (no docker)

2024-04-11 10:40:44 [E] undefined
2024-04-11 10:52:05 [E] undefined
@sabbath88 commented on GitHub (Apr 11, 2024): Have same issue. I am trying to play with notifications, but no single was sent. I am using 1.16.3 (no docker) ``` 2024-04-11 10:40:44 [E] undefined 2024-04-11 10:52:05 [E] undefined ```
Author
Owner

@meltyshev commented on GitHub (Apr 11, 2024):

I'll try testing again to catch this undefined error.

@meltyshev commented on GitHub (Apr 11, 2024): I'll try testing again to catch this `undefined` error.
Author
Owner

@casem commented on GitHub (Apr 11, 2024):

After a bit of testing, I've been able to send an email using SendGrid's SMTP server but not the Google Workspace SMTP server. I've tried using the Google Workspace SMTP server as well as their SMTP Relay and both give the [E] undefined error.

@casem commented on GitHub (Apr 11, 2024): After a bit of testing, I've been able to send an email using SendGrid's SMTP server but not the Google Workspace SMTP server. I've tried using the Google Workspace SMTP server as well as their SMTP Relay and both give the ```[E] undefined``` error.
Author
Owner

@shakibait commented on GitHub (Apr 11, 2024):

I faced same error in docker and tested with Google workspace, yandex, SendGrid smtp services.
Docker container error log for each action shows:
2024-04-11 20:34:51 [E] undefined
2024-04-11 20:34:52 [E] undefined

@shakibait commented on GitHub (Apr 11, 2024): I faced same error in docker and tested with Google workspace, yandex, SendGrid smtp services. Docker container error log for each action shows: 2024-04-11 20:34:51 [E] undefined 2024-04-11 20:34:52 [E] undefined
Author
Owner

@meltyshev commented on GitHub (Apr 12, 2024):

I tried running Planka in docker with SMTP settings and got the same error. According to this answer we need to add another environment variable SMTP_NAME, so that the hostname can be specified when running via docker.

@meltyshev commented on GitHub (Apr 12, 2024): I tried running Planka in docker with SMTP settings and got the same error. According to [this answer](https://stackoverflow.com/a/74820750) we need to add another environment variable `SMTP_NAME`, so that the hostname can be specified when running via docker.
Author
Owner

@casem commented on GitHub (Apr 12, 2024):

I managed to get Google Workspaces working without any docker changes. I had to make a chance to my Google Account Security and turned on "less secure app access".

@casem commented on GitHub (Apr 12, 2024): I managed to get Google Workspaces working without any docker changes. I had to make a chance to my Google Account Security and turned on "less secure app access".
Author
Owner

@meltyshev commented on GitHub (Apr 12, 2024):

Adding SMTP_NAME doesn't seem to change anything.

For some reason, the settings that I tested before and everything worked, now don't work and the same error occurs. But it seems to be a problem related to the specified SMTP_HOST, maybe they're just blocking connections because of frequent attempts.

Also found why undefined is output, for some reason logging in sails works differently in production (probably it's a bug). I changed the logging messages a bit and the error is displayed the same everywhere. I'll make a release with this fix.

@meltyshev commented on GitHub (Apr 12, 2024): Adding `SMTP_NAME` doesn't seem to change anything. For some reason, the settings that I tested before and everything worked, now don't work and the same error occurs. But it seems to be a problem related to the specified `SMTP_HOST`, maybe they're just blocking connections because of frequent attempts. Also found why `undefined` is output, for some reason logging in sails works differently in production (probably it's a bug). I changed the logging messages a bit and the error is displayed the same everywhere. I'll make a release with this fix.
Author
Owner

@meltyshev commented on GitHub (Apr 12, 2024):

Please try upgrading to 1.16.4 and you'll see a normal error message instead of undefined.

@meltyshev commented on GitHub (Apr 12, 2024): Please try upgrading to 1.16.4 and you'll see a normal error message instead of `undefined`.
Author
Owner

@shakibait commented on GitHub (Apr 12, 2024):

I did something and start to get email notifications without any problem, BUT i'm not sure it's correct or not to set SMTP_SECURE=false.
Kindy request to know if help contributers to solve it in better way maybe.
Right now i'm using Google workspace and also tested yandex mail without any problem and notifications are coming.

@shakibait commented on GitHub (Apr 12, 2024): I did something and start to get email notifications without any problem, BUT i'm not sure it's correct or not to set SMTP_SECURE=false. Kindy request to know if help contributers to solve it in better way maybe. Right now i'm using Google workspace and also tested yandex mail without any problem and notifications are coming.
Author
Owner

@mostdcoa commented on GitHub (Apr 13, 2024):

I was testing this for a while until I realized they wouldn't send when you're commenting on your own cards. Impersonated another user to test and all was well.

Wow, this would have been nice to know, spent hours trying to troubleshoot this!

I am also having issues with SMTP, I do have an error:

planka-1 | 2024-04-13 14:14:16 [E] Error sending email: Error: D809414AB67F0000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:354:

I am using google workspace-
- SMTP_HOST=smtp.gmail.com (i've tried smtp-relay.gmail.com as well)
- SMTP_PORT=587
- SMTP_SECURE=true
- SMTP_USER=planka@customdomain.com
- SMTP_PASSWORD=application password
- SMTP_FROM="Planka" planka@customdomain.com

As @shakibait mentioned, I also disabled SMTP_SECURE=false and it sends email without any issues.

@mostdcoa commented on GitHub (Apr 13, 2024): > I was testing this for a while until I realized they wouldn't send when you're commenting on your own cards. Impersonated another user to test and all was well. Wow, this would have been nice to know, spent hours trying to troubleshoot this! I am also having issues with SMTP, I do have an error: planka-1 | 2024-04-13 14:14:16 [E] Error sending email: Error: D809414AB67F0000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:354: I am using google workspace- - SMTP_HOST=smtp.gmail.com (i've tried smtp-relay.gmail.com as well) - SMTP_PORT=587 - SMTP_SECURE=true - SMTP_USER=planka@customdomain.com - SMTP_PASSWORD=application password - SMTP_FROM="Planka" planka@customdomain.com As @shakibait mentioned, I also disabled SMTP_SECURE=false and it sends email without any issues.
Author
Owner

@DrPersico commented on GitHub (Apr 19, 2024):

Wow, this would have been nice to know, spent hours trying to troubleshoot this!

I am also having issues with SMTP, I do have an error:

planka-1 | 2024-04-13 14:14:16 [E] Error sending email: Error: D809414AB67F0000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:354:

I am using google workspace- - SMTP_HOST=smtp.gmail.com (i've tried smtp-relay.gmail.com as well) - SMTP_PORT=587 - SMTP_SECURE=true - SMTP_USER=planka@customdomain.com - SMTP_PASSWORD=application password - SMTP_FROM="Planka" planka@customdomain.com

As @shakibait mentioned, I also disabled SMTP_SECURE=false and it sends email without any issues.

The reason why it's working with SMTP_SECURE=false and not with it set to true is because of port 587 which does not accept SSL. Changing the port to 465 should solve the issue. I highly recommend also setting the name in nodemailer as mentioned previously:

I tried running Planka in docker with SMTP settings and got the same error. According to this answer we need to add another environment variable SMTP_NAME, so that the hostname can be specified when running via docker.

@DrPersico commented on GitHub (Apr 19, 2024): > Wow, this would have been nice to know, spent hours trying to troubleshoot this! > > I am also having issues with SMTP, I do have an error: > > planka-1 | 2024-04-13 14:14:16 [E] Error sending email: Error: D809414AB67F0000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:354: > > I am using google workspace- - SMTP_HOST=smtp.gmail.com (i've tried smtp-relay.gmail.com as well) - SMTP_PORT=587 - SMTP_SECURE=true - SMTP_USER=[planka@customdomain.com](mailto:planka@customdomain.com) - SMTP_PASSWORD=application password - SMTP_FROM="Planka" [planka@customdomain.com](mailto:planka@customdomain.com) > > As @shakibait mentioned, I also disabled SMTP_SECURE=false and it sends email without any issues. The reason why it's working with SMTP_SECURE=false and not with it set to true is because of port 587 which does not accept SSL. Changing the port to 465 should solve the issue. I highly recommend also setting the name in nodemailer as mentioned previously: > I tried running Planka in docker with SMTP settings and got the same error. According to [this answer](https://stackoverflow.com/a/74820750) we need to add another environment variable `SMTP_NAME`, so that the hostname can be specified when running via docker.
Author
Owner

@mostdcoa commented on GitHub (Apr 20, 2024):

@DrPersico

Thanks, this solved my issue.

For anybody else looking at this in the future:
- SMTP_HOST=smtp.gmail.com (this would likely work as smpt-relay.gmail.com too, but not my current usecase, im internal domain emails only right now)
- SMTP_PORT=465
- SMTP_SECURE=true
- SMTP_USER=planka@domain.com
- SMTP_PASSWORD=secretpassword
- SMTP_FROM="Planka" planka@domain.com
- SMTP_NAME="domain.com"

@mostdcoa commented on GitHub (Apr 20, 2024): @DrPersico Thanks, this solved my issue. For anybody else looking at this in the future: - SMTP_HOST=smtp.gmail.com (this would likely work as smpt-relay.gmail.com too, but not my current usecase, im internal domain emails only right now) - SMTP_PORT=465 - SMTP_SECURE=true - SMTP_USER=planka@domain.com - SMTP_PASSWORD=secretpassword - SMTP_FROM="Planka" planka@domain.com - SMTP_NAME="domain.com"
Author
Owner

@tomlyo commented on GitHub (Apr 25, 2024):

This has been working well, but I've been getting complaints about not being able to turn off the email notifications on the end user side. I will have to disable the feature entirely I think.

@tomlyo commented on GitHub (Apr 25, 2024): This has been working well, but I've been getting complaints about not being able to turn off the email notifications on the end user side. I will have to disable the feature entirely I think.
Author
Owner

@meltyshev commented on GitHub (Apr 25, 2024):

This has been working well, but I've been getting complaints about not being able to turn off the email notifications on the end user side. I will have to disable the feature entirely I think.

Thanks for the idea, should be easy to implement.

@meltyshev commented on GitHub (Apr 25, 2024): > This has been working well, but I've been getting complaints about not being able to turn off the email notifications on the end user side. I will have to disable the feature entirely I think. Thanks for the idea, should be easy to implement.
Author
Owner

@Vibemetheus commented on GitHub (May 1, 2025):

Hi - I'm new to Planka and set up smtp2go.com to use with planka.

I'm running in docker and using docker-compose.yml to define SMTP usign these settings:

Email Notifications (https://nodemailer.com/smtp/)

  - SMTP_HOST=mail.smtp2go.com
  - SMTP_PORT=2525
  - SMTP_NAME=planka@mydomain.com
  - SMTP_SECURE=true
  - SMTP_USER=myuser
  - SMTP_PASSWORD=mypass
  - SMTP_FROM="Planka" <planka@mydomain.com>
  # - SMTP_TLS_REJECT_UNAUTHORIZED=false

but I can't seem to figure out the best way to test it. I tried adding another user for a separate email and assigning a card but no emails fired. I dont know where to check to see if i'm getting auth errors or something

@Vibemetheus commented on GitHub (May 1, 2025): Hi - I'm new to Planka and set up smtp2go.com to use with planka. I'm running in docker and using docker-compose.yml to define SMTP usign these settings: # Email Notifications (https://nodemailer.com/smtp/) - SMTP_HOST=mail.smtp2go.com - SMTP_PORT=2525 - SMTP_NAME=planka@mydomain.com - SMTP_SECURE=true - SMTP_USER=myuser - SMTP_PASSWORD=mypass - SMTP_FROM="Planka" <planka@mydomain.com> # - SMTP_TLS_REJECT_UNAUTHORIZED=false but I can't seem to figure out the best way to test it. I tried adding another user for a separate email and assigning a card but no emails fired. I dont know where to check to see if i'm getting auth errors or something
Author
Owner

@gremo commented on GitHub (Jun 10, 2025):

Same problem. Using SMTP2GP email notifications seems not working (same user/pass/smtp working on other apps).

@gremo commented on GitHub (Jun 10, 2025): Same problem. Using SMTP2GP email notifications seems not working (same user/pass/smtp working on other apps).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/planka#446