snipe-it icon indicating copy to clipboard operation
snipe-it copied to clipboard

SMTP Settings

Open AMG-90 opened this issue 7 years ago • 7 comments

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 avatar May 02 '19 12:05 AMG-90

Error: undefined

AMG-90 avatar May 02 '19 13:05 AMG-90

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.

acox216 avatar May 02 '19 16:05 acox216

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]

snipe avatar May 02 '19 22:05 snipe

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 [email protected] MAIL_PASSWORD=mypassword MAIL_ENCRYPTION=tls MAIL_FROM_ADDR=asset@mydomain MAIL_FROM_NAME='Snipe-IT' [email protected] MAIL_REPLYTO_NAME='IT Assets Management'

yanagha avatar Aug 05 '20 12:08 yanagha

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

mostafaelnaggar2020 avatar Aug 08 '20 15:08 mostafaelnaggar2020

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

acox216 avatar Aug 08 '20 23:08 acox216

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.

yanagha avatar Aug 09 '20 15:08 yanagha