S
S
Serge Tkach2017-01-25 13:31:59
opencart
Serge Tkach, 2017-01-25 13:31:59

How to set up sending mail from an OpenCart 2 website via GMAIL via SMTP?

I must say right away that when using SMTP hosting, everything works.
But there are problems with google
In order to still force OpenCart to send emails via SMTP, you need to allow untrusted services to access gmail mail - https://support.google.com/accounts/answer/6010255...
Sample settings:
SMTP Server name: ssl ://smtp.gmail.com
SMTP Login: {Your login}
SMTP Password: {Your password}
SMTP Port: 465
SMTP Timeout: 5
+
It turned out that port 465 is disabled by default on the hosting...
------ -----------------------
Workaround
It consists in sending mail using hosting boxes. And set up a redirect to gmail. But emails end up in spam from time to time. And accordingly, they can remain unattended for some time.
=======================
PS
Isn't it easier to cut opencart so that it has different send and receive mail and not bother with smtp and redirects??
Who has counterarguments?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Serge Tkach, 2017-01-25
@SergeTkach

Solved the problem like this:
And that you can do it manually only by switching to the old version of google contacts:
e249bbebbe1b4d9eb208de9610c3232b.png66dd05e11fc14178a43f2e1b5075d228.png100a940d916c418db73ef9e78a0b3e75.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question