Skip to content
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

SMTP Settings #6979

Closed
AMG-90 opened this issue May 2, 2019 · 7 comments
Closed

SMTP Settings #6979

AMG-90 opened this issue May 2, 2019 · 7 comments

Comments

@AMG-90
Copy link

AMG-90 commented May 2, 2019

Hello i am trying to set new smtp by sendgrid its works for me in the same configuration in a lot of machine but in the snipe it it writes me Mail could not be sent.

how i can diagnose what i am missing or debug it ?
in addition do i need to edit anything else instead of the .env file

@AMG-90
Copy link
Author

AMG-90 commented May 2, 2019

Error: undefined

@acox216
Copy link

acox216 commented May 2, 2019

You should only need to edit the .env file. Can you share your SMTP settings (without the password, etc) from the .env?

We also need to know the Snipe-IT version, OS and web server you're using to better assist.

@snipe
Copy link
Owner

snipe commented May 2, 2019

The issue template you deleted before posting your issue here gave you the instructions on how to troubleshoot, and what information we need to be able to assist you.

According to the Sendgrid documentation, your SMTP settings should look something like this:

MAIL_DRIVER=smtp
MAIL_HOST=smtp.sendgrid.net
MAIL_PORT=587
MAIL_USERNAME=sendgrid_username
MAIL_PASSWORD=sendgrid_password
MAIL_ENCRYPTION=tls
MAIL_FROM_NAME="John Smith"
[email protected]

@yanagha
Copy link

yanagha commented Aug 5, 2020

Hi,

I have the same problem with gmail. After updating to the latest version Version v4.9.4 - build 4437 (master) it doesn't send emails.
I am getting Mail could not be sent. Error: undefined message

MAIL_DRIVER=smtp
MAIL_HOST=smtp-relay.gmail.com
MAIL_PORT=587
MAIL_USERNAME=[email protected]
MAIL_PASSWORD=mypassword
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDR=asset@mydomain
MAIL_FROM_NAME='Snipe-IT'
MAIL_REPLYTO_ADDR=[email protected]
MAIL_REPLYTO_NAME='IT Assets Management'

@mostafaelnaggar2020
Copy link

Hi,

I have the same problem with gmail. After updating to the latest version Version v4.9.4 - build 4437 (master) it doesn't send emails.
I am getting Mail could not be sent. Error: undefined message

@acox216
Copy link

acox216 commented Aug 8, 2020

@mostafaelnaggar2020 @yanagha You should try some of the suggestions on this issue #8231

@yanagha
Copy link

yanagha commented Aug 9, 2020

Thank you, the issue is fixed. I have added server IP address in Gsuite SMTP relay settings page and activated less secure apps option in gmail account settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants