Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

Gmail в спам


Skymih
 Share

Recommended Posts

Магазину 7 год.

В последнее время, письма для клиентов о заказе с Gmail почтот попадают в спам, но другие почтовые клиенты принимают во входящие.

Почтовый ящик хостинга.

Обращался к хостеру: -"опрегделяет в спам из-за согдержимого письма, может быть отгдельное слово или шаблон письма похож на шаблон писем, которые часто отмечают как спам. Пробуйте менять письмо", иков ответ.

В catalog/controller/information/contact.php

      

Циии

 if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validate()) {
            $mail = new Mail();
            $mail->protocol = $this->config->get('config_mail_protocol');
            $mail->parameter = $this->config->get('config_mail_parameter');
            $mail->hostname = $this->config->get('config_smtp_host');
            $mail->username = $this->config->get('config_smtp_username');
            $mail->password = $this->config->get('config_smtp_password');
            $mail->port = $this->config->get('config_smtp_port');
            $mail->timeout = $this->config->get('config_smtp_timeout');                
            $mail->setTo($this->config->get('config_email'));
            $mail->setFrom($this->config->get('config_email'));
            $mail->setSender($this->request->post['email']);
            $mail->setSubject(html_entity_decode(sprintf($this->language->get('email_subject'), $this->request->post['name']), ENT_QUOTES, 'UTF-8'));
            $mail->setText(strip_tags(html_entity_decode($this->request->post['enquiry'] . "\n\nClient email: " . $this->request->post['email'], ENT_QUOTES, 'UTF-8')));
            $mail->setText($this->request->post['enquiry']);
            $mail->send();

 

Edited by Skymih
Link to comment
Share on other sites


2 часа назад, Skymih сказал:

письма для клиентов о заказе

 

2 часа назад, Skymih сказал:

В catalog/controller/information/contact.php

Контроллер этот от страницы Связаться с нами.

Link to comment
Share on other sites

Да, простите тоже отправляло в спам в "Связаться с нами", им исправил.

А вот при отправке письма с заказом уходит в спам только в джемейл, в письме catalog/model/checkout/order - со спамом по согдержимому нилиру букв в сообещёнии, но вот каких не ясно?

Edited by Skymih
Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.