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

SMTP error

Open yanagha opened this issue 6 years ago • 5 comments

Hi,

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 while trying to send a test mail on admin settings page.

  • Snipe-IT Version Version v4.9.4 - build 4437 (master)
  • OS: [e.g. Ubuntu, CentOS] Centos
  • Web Server: [e.g. Apache, IIS] Apache
  • PHP Version PHP 7.3.20 (cli) (built: Jul 7 2020 07:53:49) ( NTS )

SMTP settings (I tried with smtp.gmail.com with TLS 587 and SSL 465)

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

Hello, one question do you have a hosted mail server?

Relix360 avatar Aug 05 '20 14:08 Relix360

We are using Gsuite.

yanagha avatar Aug 06 '20 07:08 yanagha

The issue is fixed. I have added server IP address in GSuite SMTP relay settings page.

yanagha avatar Aug 06 '20 23: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

can you share with me your solution @yanagha

mostafaelnaggar2020 avatar Aug 08 '20 15:08 mostafaelnaggar2020

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

can you share with me your solution @yanagha

If you are using Gsuite, you should add the server IP address in SMTP relay settings and enable less secure apps to access Gmail account settings page.

yanagha avatar Aug 09 '20 16:08 yanagha