H
H
hypero2022-01-08 17:15:25
opencart
hypero, 2022-01-08 17:15:25

Setting up SMTP OpenCart?

Hello everyone.
The problem is this.
Site on opencart. SMTP configured with hosting mail.
For example, a letter arrives in the mail. Header From: is the admin's mail, but the host's mail should be. How to do it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
opencartbot, 2022-01-12
@opencartbot

In the /catalog/controller/mail/ folder,
in each of the files you need to substitute your email in the line:

$mail->setFrom($this->config->get('config_email'));

Example: Or make this replacement with an ocmod modifier, and enter the desired email in some free field from the store settings and receive it from there.
$mail->setFrom('[email protected]');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question