-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Emails not sending (SMTP) #145
Comments
Hi, it should show an error message in the logs when it fails, unless the SMTP provider didn't return an error. I know SMTP works, as one of my instances is using it. One caveat that might be an issue. In the docs there is written this:
You actually only need one of them. Could you try both (one at a time - remove the other one)? |
I know this is old, but I was having a similar issue. The port I was given from my email provider was wrong and I defaulted to the one present in the ChiefOnboarding docs. |
Hello, When I tried test message that you mentionned in #331 : Log from django :
Setup : Docker version 25.03 Thank's for the support ! |
A connection timeout generally means that it could not reach the mail server. Do you have any sort of ip/region blocking on that server? ChiefOnboarding is using Django defaults here and I don't know what I would need to change to fix this. This should be an issue with your mail server. |
This probably has less to do with IP/region blocking and more with port accessibility.
ChiefOnboarding email capabilities work, but as mentioned before, you should try using the default ports. What port are you currently using to connect to your email server? |
Hello, Thank's for the help :)
No, I don't have any sorts of filter... Still works on other servers...
Something very simple, here is an example of the environments variables inside my compose :
I've tried several configurations, mainly ANYMAIL, SMTP, EMAIL_USE_TLS and EMAIL_USE_SSL with different parameters, still got no results... I was wondering if I've to open or tweak the port configurations of the container. Also tried with something like :
or
And yet, same issue... It works on other containers without it so, guess the snag is elsewhere. Feel free to ask me details ! |
Have you tried using a different email provider? Something like Gmail or Outlook? |
Unfortunatly, I can't. My company is giving me a single point for mail server... So yes, I can't really reliate on others provider. Do you have any example of SMTP working ? I think this is better this way to confirm there is not an issue with Chief, or at least, the mailing brick. Thank's ! |
Yeah, just try another provider to test if there's something wrong with the connection. If you're using an enterprise environment, and your host machine is new (i.e., your other docker containers that do work with your email provider are in a different machine/IP/Mac Address, etc.) you may need to check if there are any policies preventing this interaction. |
Ok I'll try with Mailtrap I guess. I've got no policies preventing any block path. I'll keep in touch if it works with Mailtrap, but in anycase, this is not the intended way nor the main issue. |
Hey,
I'm trialing out the self-hosted option via Docker, and running into some issues getting SMTP to work.
I'm attempting to use Office365 (smtp.office365.com) using all of the environment variables listed on https://docs.chiefonboarding.com/integrations/email/
While using the feature to manually send the preboarding emails (People > New Hires > Settings Cog > Send pre-boarding email), it shows that the 'New hire has been notified.' though nothing comes through.
I have tried a few different options but cannot seem to find anything that works.
Are there any additional log files or settings that may assist?
Thank you
The text was updated successfully, but these errors were encountered: