Magento2: How to configure the SMTP?

Created on 30 Mar 2015  Â·  10Comments  Â·  Source: magento/magento2

I've been looking for the SMTP configuration but I didn't found, do you know where it is?

Most helpful comment

@vpelipenko Basically I would like to know if it is possible use an external SMTP in magento2. For example how configure Magento 2 to send emails using gmail.

All 10 comments

Stores > configuration > System > Mail Sending Settings

Thaks grepdirect, and do you know which file or which table in the db I have to populate to do that manually without go to the admin panel?

@JesusTinoco I think it's the core_config_data

But I would like to send emails from an external SMTP server, do you know how? Thanks @alihalabyah

No in Magento2 in core_config_data there's not email settings.

Inviato da iPhone

Il giorno 31/mar/2015, alle ore 16:08, Ali Halabyah [email protected] ha scritto:

@JesusTinoco I think it's the core_config_data

—
Reply to this email directly or view it on GitHub.

@JesusTinoco Are you running the store on unix server? If so, my suggestion is to install ssmtp and config your external smtp server in /etc/ssmtp/ssmtp.conf. It works without any settings on admin page.

@JesusTinoco, do you still have questions here? Can we close this issue?

@vpelipenko Basically I would like to know if it is possible use an external SMTP in magento2. For example how configure Magento 2 to send emails using gmail.

Nothing to do inhere.
Please setup ssmtp to make any outgoing email go through any smtp..

To summarize for anyone else coming, Magento unlike other frameworks like laravel ect. has no PHP SMTP support build into the framework, one has to install ssmtp or setup sendmail on the underlaying linux system in order to use a dedicated external smtp server/saas/account like mailtrap ect. ... it is not possible to simply put all the smtp config per shop into the magento configuration file ...

However alternatively there might be extensions out there that add this kind of feature....

Was this page helpful?
0 / 5 - 0 ratings