mirror of
https://github.com/plankanban/planka.git
synced 2026-02-24 19:08:59 +03:00
SMTP no work #446
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @DeAlexPesh on GitHub (Mar 22, 2024).
When should letters send?
No error, but and no letters...
@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.
@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.
@DeAlexPesh commented on GitHub (Mar 25, 2024):
@DeAlexPesh commented on GitHub (Mar 25, 2024):
hm. no work for another user...
@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@meltyshev commented on GitHub (Mar 28, 2024):
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.
@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.
@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)
@meltyshev commented on GitHub (Apr 11, 2024):
I'll try testing again to catch this
undefinederror.@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] undefinederror.@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
@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.@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".
@meltyshev commented on GitHub (Apr 12, 2024):
Adding
SMTP_NAMEdoesn'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
undefinedis 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):
Please try upgrading to 1.16.4 and you'll see a normal error message instead of
undefined.@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.
@mostdcoa commented on GitHub (Apr 13, 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.
@DrPersico commented on GitHub (Apr 19, 2024):
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:
@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"
@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.
@meltyshev commented on GitHub (Apr 25, 2024):
Thanks for the idea, should be easy to implement.
@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/)
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
@gremo commented on GitHub (Jun 10, 2025):
Same problem. Using SMTP2GP email notifications seems not working (same user/pass/smtp working on other apps).