magepal / magento2-gmail-smtp-app

Configure Magento 2 to send email using Google App, Gmail, Amazon Simple Email Service (SES), Microsoft Office365 and many other SMTP (Simple Mail Transfer Protocol) servers
https://www.magepal.com
319 stars 147 forks source link

Connection time out error and not working with TLS #62

Closed rizvanvadia closed 7 years ago

rizvanvadia commented 7 years ago

Hi,

I did set below configuration in my magento backend.

https://www.screencast.com/t/gK0dFRseW

I am getting timeout error.

https://www.screencast.com/t/8a80dnI76

If I change SSL type to TSL and port 587 https://www.screencast.com/t/4AVVUmi2vl21 test email is working but other magneto emails are still fired by default php email through our local server. Is there any setting at server to use SMTP settings from magento or there is any bug in extension or Magento which is not taking this smtp settings correctly.

Regards, Rizvan

srenon commented 7 years ago

Timeout normally means that something is blocking the connection to the server... Take a look at https://github.com/magepal/magento2-gmailsmtpapp/issues/58

rizvanvadia commented 7 years ago

Time out is only on ssl.

When I use TSL its sending test email but other emails of magento is still from local server not via SMTP. Is there any setting at server to use SMTP in magento OR there is any bug in extension or Magento which is not taking this smtp settings correctly.

srenon commented 7 years ago

What steps did you take to install in extension?

rizvanvadia commented 7 years ago

We did install this extension zip file copied files to app/code and then deployed magento 2

srenon commented 7 years ago

What mode is Magento in? Did you do DI compile/flash cache? Do you have any other email extension installed (that rewrite \Magento\Framework\Mail\Transport https://github.com/magepal/magento2-gmailsmtpapp/blob/master/etc/di.xml)?

rizvanvadia commented 7 years ago

What mode is Magento in?

---Production mode

Did you do DI compile/flash cache? ---No Do you have any other email extension installed (that rewrite \Magento\Framework\Mail\Transport https://github.com/magepal/magento2-gmailsmtpapp/blob/master/etc/di.xml)? --No other extension

srenon commented 7 years ago

Take a look at (Steps # 6-8) http://devdocs.magento.com/guides/v2.1/config-guide/prod/single-machine-deployment.html

rizvanvadia commented 7 years ago

I am sorry but what above is related to extension is not working? Its installed correct sending test emails the only issue is its not hooked with magento emails? Can you please suggest what may be issue with this?

srenon commented 7 years ago

"magneto emails are still fired by default php email through our local server"... this is what you state correct?

The only way that is possible is if this (https://github.com/magepal/magento2-gmailsmtpapp/blob/master/etc/di.xml) is not merged or this (https://github.com/magepal/magento2-gmailsmtpapp/blob/master/Plugin/Mail/TransportPlugin.php#L28) returning false.

srenon commented 7 years ago

@rizvanvadia .... I will close this ticket since you have not replied in over 20 days