Snipe-IT Email configuration error - Mail could not be sent. No additional error message provided. Check your mail settings and your app log. #14041
Unanswered
thilinadias
asked this question in
Q&A
Replies: 3 comments 5 replies
-
Hi there - can you show me your mail section of your |
Beta Was this translation helpful? Give feedback.
0 replies
-
I got the same problem here . Some one help me please |
Beta Was this translation helpful? Give feedback.
1 reply
-
Struggle with simmilar issue on a docker instance aswell on our new testing instance on kubernetes. With debug enabled I could track it down to:
The SMTP Host is a simple postfix mail relay so the config looks like this in the helm chart: MAIL_DRIVER: smtp
MAIL_HOST: 10.3.0.8
MAIL_PORT: 25
MAIL_ENCRYPTION: null |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
✏️ Hi Github peeps, Welcome to my discussion regarding Snipe-IT Email configuration error - Mail could not be sent. No additional error message provided. Check your mail settings and your app log.
If you come across mentioned issue when setting up the Snipe-IT, Do the following steps.
cd /var/www/html/snipe-it
(It might be different in your environment]sudo ufw status
'] This might be interfering with emailstelnet smtp.gmail.com 587
. If it is successful you might see the following message. "220 smtp.gmail.com ESMTP [...]"**
cd /var/www/html/snipe-it/storage/logs
tail -f laravel.log** You might see following error. "production.ERROR: Connection could not be established with host smtp-mail.outlook.com :stream_socket_client(): unable to connect to starttls://smtp-mail.outlook.com:587 (Unable to find the socket transport "starttls" - did you forget to enable it when you configured PHP?) {"userId":1,"exception":"[object] (Swift_TransportException(code: 0): Connection could not be established with host smtp-mail.outlook.com :stream_socket_client(): unable to connect to starttls://smtp-mail.outlook.com:587 (Unable to find the socket transport "starttls" - did you forget to enable it when you configured PHP?) at /var/www/snipe-it/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php:261)
[stacktrace]
It means that, in the php.ini file you doesn't enable the tls service. The location of this file may vary depending on your PHP installation, but common locations are
/etc/php/7.x/cli/php.ini
and/etc/php/7.x/apache2/php.ini
.Look for the extension= or ;extension= lines related to OpenSSL. Uncomment (remove the ; at the beginning) or add the following lines:
sudo service apache2 restart
For Apachesudo service nginx restart
For Nginxphp check_starttls.php
Then you can see the supported transport including TLS.
After that restart the apache server.
sudo service apache2 restart
# For Apacheor
sudo service nginx restart
# For NginxThank you guys! Good Luck! 😉🔎
Beta Was this translation helpful? Give feedback.
All reactions