Страница 1 из 2
-
// Version
define(‘VERSION’, ‘2.0.3.0’);Выбрал режим SMTP закинул настройки и получаю результат:
RCPT TO not accepted from serverВложения:
-
-
С mail работает, но хочется работать через SMTP
-
Romans
Administrator
Команда форума- Сообщения:
- 1.396
- Симпатии:
- 743
Когда возникает такая ошибка?
-
при отсылке скриптом почты
-
Romans
Administrator
Команда форума- Сообщения:
- 1.396
- Симпатии:
- 743
После оформления заказа письмо приходит? Или тоже ошибка?? Если ошибка, то пишите вопрос хостеру.
-
Здравствуйте.
А у меня вот такая ошибка «Notice: Error: RCPT TO not accepted from server! in public_html/system/library/mail.php on line 346″ , при отправке через обратную связь, при выборе протокола SMTP, уведомления о заказе при этом приходят без проблем. А при выборе mail обратная связь работает, но как писали выше хочется все таки SMTP.
Может знаете, как можно исправить. -
попробуйте в файл catalogcontrollerinformationcontact.php
изменить
$mail->setFrom($this->request->post['email']);
на
$mail->setFrom($this->config->get('config_email'));
и еще проверьте, в настройках магазина емайл указан верный, т.е тот который разрешен для отправки через SMTP
Так же можете обратится в хостеру с данной ошибкой, он должен помочь с настройками смтп
Последнее редактирование: 3 авг 2015
-
Ок, спасибо
Связь действительно заработала, но вот только сообщение приходит с моего же email, а email пользователя не высвечивается.
Последнее редактирование модератором: 5 авг 2015
-
так выше указанные изменения это и сделали.
Попробуйте добавить после указанного кода, вот это (не проверял, но должно работать)
$mail->setReplyTo($this->request->post['email']);
Будет адрес в доп поле ReplyTo
-
Спасибо, разобрался. Нужно так, может кому пригодится.
Открываем файл: catalogcontrollerinformationcontact.php
Ищем:$mail->setTo($this->config->get('config_email')); $mail->setFrom($this->request->post['email']); $mail->setSender(html_entity_decode($this->request->post['name'], ENT_QUOTES, 'UTF-8'));
Меняем на:
$mail->setTo($this->config->get('config_email')); $mail->setFrom($this->config->get('config_email')); $mail->setSender(html_entity_decode($this->request->post['email'], ENT_QUOTES, 'UTF-8'));
Все заработает! Версия OpenCart 2 (2.0.3.1)Последнее редактирование модератором: 5 авг 2015
-
А мой вариант не помог? Вашем варианте нет имени отправителя.
-
Я не пробовал Ваш вариант, но в моем варианте тоже все приходит и имя в том числе.
Вот копия сообщения которая пришла при тесте:
Сообщение от Андрей
вчера, 20:54
от: ???2009@bk.ru
кому: мне sale@???.ru
дата: 03 августа 2015 20:5 -
вы перемудрили, это вы видимо кривой ответ скопировали
В общем лучше так
вместо
$mail->setSender(html_entity_decode($this->request->post['email'], ENT_QUOTES, 'UTF-8'));
так
$mail->setSender($this->request->post['email']);
-
Сейчас попробую.
Да, так тоже работает. Правда работает точно также, как и в моем варианте.
Последнее редактирование модератором: 5 авг 2015
-
Подскажите пожалуйста, как находить где находятся ошибки, например такую ошибку system/library/mail.php on line 164
-
например открыть указанный файл и посмотреть на строку. Но обычно к указанной строчке приписывается описание ошибки.
-
pobo3
Новичок- Сообщения:
- 11
- Симпатии:
- 0
Та же беда ocstore 2.3.0.2.2. В contact.php — так
$mail->setTo($this->config->get(‘config_email’));
$mail->setFrom($this->config->get(‘config_email’));
$mail->setReplyTo($this->request->post[’email’]);
ошибка — CPT TO not accepted from server!’ in /../../system/library/mail.php:340
хостер говорит — проблема заключается в некорректно настроенном скрипте system/library/mail.php.
что может быть не так? -
karpov
Продвинутый пользователь- Сообщения:
- 1.412
- Симпатии:
- 230
SMTP или mail ? Бывает такое при смтп если настроен неправильно или емайл получателя несуществующий или все же хостер.
-
pobo3
Новичок- Сообщения:
- 11
- Симпатии:
- 0
Режим SMTP
адрес сервера ssl://smtp.mail.ru (пробовал и просто smtp.mail.ru, пробовал и яндекс и их сервером)
порт SMTP 465
логин
пароль -
karpov
Продвинутый пользователь- Сообщения:
- 1.412
- Симпатии:
- 230
Ошибка всегда возникает или только с формы обратной связи? Емайл отправителя в настройках верный? Т.е майл итд?
Страница 1 из 2
RCPT TO not accepted from server! when placing new order ONLY
Hello, we are using the amazing version OC 3.0.3.1 but We have a spam issue and we must use SMTP in email setting to reach our customers inbox
So my server is configured correctly regarding rDNS,SPF,DKIM and SMTP restriction. Also the parameter in mail setting inside OC setting is correct.
And we can send order status updates and newsletter successfully without any issue. But when try to place an order from front-end ( main website ) only not from back-end ( admin ) I received the following error
Code: Select all
PHP Fatal error: Uncaught Exception: Error: RCPT TO not accepted from server! in /home/***/public_html/storage/modification/system/library/mail/smtp.php:275
Stack trace:
#0 /home/***/public_html/storage/modification/system/library/mail.php(202): MailSmtp->send()
#1 /home/***/public_html/storage/modification/catalog/controller/mail/order.php(129): Mail->send()
#2 /home/***/public_html/vqmod/vqcache/vq2-storage_modification_system_engine_action.php(79): ControllerMailOrder->index('checkout/order/...', Array)
#3 /home/***/public_html/storage/modification/system/engine/event.php(67): Action->execute(Object(Registry), Array)
#4 /home/***/public_html/vqmod/vqcache/vq2-storage_modification_system_engine_loader.php(237): Event->trigger('model/checkout/...', Array)
#5 /home/***/public_html/system/engine/proxy.php(47): Loader->{closure}(Array, Array)
#6 /home/***/public_html/catalog/controller/extension/payment/cod.php(13): Proxy->__call('addOrderHistory', Array)
#7 /home/***/public_html/vq in /home/***/public_html/storage/modification/system/library/mail/smtp.php on line 275
SMTP setting:
Mail Parameters: email@domain.com
SMTP Hostname: ssl://domain.com
SMTP Username: email@domain.com
PW: ******
port: 465
Also I tried tls and same result
Any Suggestion or support will be highly appreciated !!
Last edited by straightlight on Tue May 05, 2020 8:45 pm, edited 1 time in total.
Reason: Added code tags.
Re: RCPT TO not accepted from server! when placing new order ONLY
Post
by MarketInSG » Tue Mar 12, 2019 1:10 pm
Try switching to mail? your smtp details are likely incorrect
Joined
Wed Nov 16, 2011 11:53 am
Re: RCPT TO not accepted from server! when placing new order ONLY
Post
by thekrotek » Tue Mar 12, 2019 6:28 pm
This question been asked multiple times. Search forums for «RCPT TO not accepted».
Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com
Joined
Sun Jul 03, 2016 12:24 am
Re: RCPT TO not accepted from server! when placing new order ONLY
Joined
Mon Aug 22, 2011 11:01 pm
Re: RCPT TO not accepted from server! when placing new order ONLY
Post
by thekrotek » Tue Mar 12, 2019 7:58 pm
paulfeakins wrote: ↑
Tue Mar 12, 2019 7:35 pm
It would be handy for you to post a link to the topic you have in mind?
Search by suggested keywords returns 108 matches, so…
Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com
Joined
Sun Jul 03, 2016 12:24 am
Re: RCPT TO not accepted from server! when placing new order ONLY
Joined
Mon Aug 22, 2011 11:01 pm
Re: RCPT TO not accepted from server! when placing new order ONLY
Post
by thekrotek » Tue Mar 12, 2019 11:05 pm
paulfeakins wrote: ↑
Tue Mar 12, 2019 10:57 pm
So … suggesting one that solves the problem would be very helpful to the OP
There might be different solutions and I’m not sure which one suits the case.
Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com
Joined
Sun Jul 03, 2016 12:24 am
Re: RCPT TO not accepted from server! when placing new order ONLY
Joined
Mon Aug 22, 2011 11:01 pm
Re: RCPT TO not accepted from server! when placing new order ONLY
Post
by elprince » Tue Mar 12, 2019 11:27 pm
MarketInSG wrote: ↑
Tue Mar 12, 2019 1:10 pm
Try switching to mail? your smtp details are likely incorrect
thanks for your reply all unsecured emails going to spam or not delivered and must use SMTP also for security reason as our email used for spoofing and reply to from a spammer and that’s why our emails going to spam now
Re: RCPT TO not accepted from server! when placing new order ONLY
Post
by elprince » Tue Mar 12, 2019 11:30 pm
thekrotek wrote: ↑
Tue Mar 12, 2019 6:28 pm
This question been asked multiple times. Search forums for «RCPT TO not accepted».
thanks for your reply, I searched all the forums here and github and a lot of others forums, but this is a different issue Order Updates email sent with no problem, only order confirmation email have the issue which approve that smtp is correct.
Last edited by elprince on Tue Mar 12, 2019 11:36 pm, edited 1 time in total.
Re: RCPT TO not accepted from server! when placing new order ONLY
Post
by elprince » Tue Mar 12, 2019 11:33 pm
Thanks for sharing this solution, but it have no relation with our issue as our contact form working well, all and everything is working fine with smtp except order confirmation email !! that’s why I opened a new topic.
Re: RCPT TO not accepted from server! when placing new order ONLY
Post
by thekrotek » Wed Mar 13, 2019 12:00 am
elprince wrote: ↑
Tue Mar 12, 2019 11:33 pm
Thanks for sharing this solution, but it have no relation with our issue as our contact form working well, all and everything is working fine with smtp except order confirmation email !! that’s why I opened a new topic.
This is a generic issue, related to any kind of mailing functionality. To figure out, if particular solution is helpful you need to actually try it. Did you?
Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com
Joined
Sun Jul 03, 2016 12:24 am
Re: RCPT TO not accepted from server! when placing new order ONLY
Post
by elprince » Wed Mar 13, 2019 2:14 am
thekrotek wrote: ↑
Wed Mar 13, 2019 12:00 am
elprince wrote: ↑
Tue Mar 12, 2019 11:33 pm
Thanks for sharing this solution, but it have no relation with our issue as our contact form working well, all and everything is working fine with smtp except order confirmation email !! that’s why I opened a new topic.This is a generic issue, related to any kind of mailing functionality. To figure out, if particular solution is helpful you need to actually try it. Did you?
Thanks for your reply, I really doubt you even read my post you just may be see the subject and start being aggressive.
Whatever I appreciate your involvement in supporting solving my issue, but this solution was for OC 1.5 and I’m talking about is OC 3.0.3.1 which is using another concept of coding.
and the solution there in that post can’t be implemented on OC 3 as there is now such a code in the file and I try it by the way from couple of days when I saw this solution
Re: RCPT TO not accepted from server! when placing new order ONLY
Post
by paulfeakins » Wed Mar 13, 2019 2:57 am
elprince wrote: ↑
Wed Mar 13, 2019 2:14 am
and the solution there in that post can’t be implemented on OC 3 as there is now such a code in the file and I try it by the way from couple of days when I saw this solution
The code is instead in:
Code: Select all
catalog/controller/information/contact.php
But in OC3 it is already:
Code: Select all
$mail->setFrom($this->config->get('config_email'));
$mail->setReplyTo($this->request->post['email']);
So unfortunately this isn’t a solution in OC3 … but did you try the solutions from the 2 other articles I posted?
UK OpenCart Hosting | OpenCart Audits | OpenCart Support — please email info@antropy.co.uk
Joined
Mon Aug 22, 2011 11:01 pm
Re: RCPT TO not accepted from server! when placing new order ONLY
Post
by thekrotek » Wed Mar 13, 2019 3:47 am
elprince wrote: ↑
Wed Mar 13, 2019 2:14 am
Thanks for your reply, I really doubt you even read my post you just may be see the subject and start being aggressive.
Whatever I appreciate your involvement in supporting solving my issue, but this solution was for OC 1.5 and I’m talking about is OC 3.0.3.1 which is using another concept of coding.
Apparently you have no idea what you’re talking about. And we’re talking about GENERIC PHPMailer issue, which you can search in google for and see, that it’s not only OpenCart related. I’m not trying to be aggressive, I’m telling you that this issue has been mentioned and EXPLAINED multiple times even on these forums. And if you also search in Google, you will find more solutions with pretty good explanations of what is going on.
elprince wrote: ↑
Wed Mar 13, 2019 2:14 am
and the solution there in that post can’t be implemented on OC 3 as there is now such a code in the file and I try it by the way from couple of days when I saw this solution
This only proves my point above: you don’t have enough experience and don’t actually understand the issue. And Paul’s reply below tells you the same. You’re looking for exact code pieces and, of course, you’re not finding anything. This is why you need to UNDERSTAND the issue — then you will be able to find a solution. Otherwise be ready to pay for someone to do this for you.
Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com
Joined
Sun Jul 03, 2016 12:24 am
Re: RCPT TO not accepted from server! when placing new order ONLY
Joined
Mon Aug 22, 2011 11:01 pm
Re: RCPT TO not accepted from server! when placing new order ONLY
Post
by elprince » Thu Mar 14, 2019 5:14 am
paulfeakins wrote: ↑
Wed Mar 13, 2019 6:16 am
Alright let’s all play nicelyHow about those other 2 articles, they seemed to have quite good step by step instructions?
Hello Paul, first article I found it in my first search and still didn’t solve the issue.
Second article I didn’t see it before, so I read it now and will try it tomorrow if it will work
thanks for your support
Re: RCPT TO not accepted from server! when placing new order ONLY
Post
by elprince » Thu Mar 14, 2019 5:15 am
thekrotek wrote: ↑
Wed Mar 13, 2019 3:47 am
elprince wrote: ↑
Wed Mar 13, 2019 2:14 am
Thanks for your reply, I really doubt you even read my post you just may be see the subject and start being aggressive.
Whatever I appreciate your involvement in supporting solving my issue, but this solution was for OC 1.5 and I’m talking about is OC 3.0.3.1 which is using another concept of coding.Apparently you have no idea what you’re talking about. And we’re talking about GENERIC PHPMailer issue, which you can search in google for and see, that it’s not only OpenCart related. I’m not trying to be aggressive, I’m telling you that this issue has been mentioned and EXPLAINED multiple times even on these forums. And if you also search in Google, you will find more solutions with pretty good explanations of what is going on.
elprince wrote: ↑
Wed Mar 13, 2019 2:14 am
and the solution there in that post can’t be implemented on OC 3 as there is now such a code in the file and I try it by the way from couple of days when I saw this solutionThis only proves my point above: you don’t have enough experience and don’t actually understand the issue. And Paul’s reply below tells you the same. You’re looking for exact code pieces and, of course, you’re not finding anything. This is why you need to UNDERSTAND the issue — then you will be able to find a solution. Otherwise be ready to pay for someone to do this for you.
I have no problem to pay to you to do the work
Re: RCPT TO not accepted from server! when placing new order ONLY
Post
by goksel1961 » Tue May 05, 2020 8:32 pm
Try to change the company name in Settings/store/ Store Name to sender email (for example company email)
The code assigns company name string to the «sender» variable . And this variable places somehow in the header as rcpt to .
When i changed the name to the email address the problem is solved . But its not a good solution. Company Name is necessarry field and must be somewhere
as «display name».
If somebody find the correct solution please let me know.
Joined
Wed Apr 10, 2019 10:30 pm
Re: RCPT TO not accepted from server! when placing new order ONLY
Post
by andresarenasj » Sat Mar 20, 2021 9:09 am
Don’t pay a penny , this community is for that; there is always someone who wants to help, other people are aggravated and frustrated.
My bug was the same one you reported.
1. Don’t change code.
2. Make sure that the email to send, is the same as it is in the stores tab, with those entered in the SMTP email configuration.
It worked for me, thanks.
Large store owners use SMTP mail function to improve mail delivery rate and avoid spam problems.
This function works well in most sites, but sometimes, it conflicts with the server configuration and results in an error.
“Error: RCPT TO not accepted from server! in system/library/mail.php” is one such reported problem by Opencart store owners when sending message from contact forms or feedback forms.
As a part of our Support Engineers for webhosts, we routinely solve such errors faced by website owners.
Today, let’s discuss the top 2 causes for this error and how we fix it.
“error: rcpt to not accepted from server!” – Reasons and Fixes
Let’s see the top 2 reasons for this error.
1) Incorrect SMTP settings in Opencart
Store owners use SMTP feature to send emails, much like an email client. We have seen cases where incorrect settings like SMTP hostname, username, protocol or port can hinder the server from connecting to the SMTP server.
How to fix?
We verify the following SMTP settings in Opencart panel and confirm the connectivity to SMTP host using the telnet command.
Mail Protocol : SMTP SMTP Hostname : Address of SMTP host. Include the protocol also(ssl://smtp.gmail.com). SMTP Username : Email address of SMTP host. SMTP Password : Email account password. SMTP Port : The port number provided by SMTP host. SMTP Timeout : Timeout provided by SMTP host.
If we notice any issues, we quickly correct the SMTP settings.
2. Security restriction in servers
We see email providers use a security feature called SPF(Sender Policy Framework) to check the email authenticity of the sender.
It decides the servers that can send emails on behalf of a domain.
When emails don’t originate from the servers mentioned in the SPF record of the domain, mail server assumes it as fraud and rejects them.
As per Opencart algorithm, when client puts his contact email address(so that store owner can reply to him via this email) say test@gmail.com, Opencart system automatically assigns this email address as the FROM address of the message.
Consequently, the receiver end sees an email claiming to be FROM gmail.com, which is actually from a completely different server. Hence, it fails the SPF check process and mail bounces with the above error.
How to fix?
The right solution we suggest is to modify the Opencart contact form module.
It’s a quick fix as we need to edit a few lines. As a precaution, we always take a backup of the files before editing them.
1. Open the file catalog/controller/information/contact.php
2. Change the FROM field in the contact form to be same as store’s email address by modifying the line as below.
$mail->setFrom($this->config->get('config_email'));
3. Change the Sender address as store’s email address by modifying the line as below.
$mail->setSender($this->config->get('config_email'));
4. Set the client’s email given in the contact form as Reply-to email by modifying the below line.
$mail->setReplyTo($this->request->post['email']);
Conclusion
“Error: RCPT TO not accepted from server!” can occur due to incorrect SMTP settings in Opencart or security restrictions in the server. Today, we’ve seen how our Support Engineers fix this issue.
PREVENT YOUR SERVER FROM CRASHING!
Never again lose customers to poor server speed! Let us help you.
Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.
SEE SERVER ADMIN PLANS
var google_conversion_label = «owonCMyG5nEQ0aD71QM»;
Рекомендованные сообщения
-
- Поделиться
Здравствуйте. Имеется opencart 3 и simple checkout.
Иногда покупатели вводят в поле e-mail адрес с пробелами, нелатинскими символами, либо пишут туда какую-то дичь. При этом, заказ не оформляется, а покупатель видит ошибку:
Got error 'PHP message: PHP Fatal error: Uncaught Exception: Error: RCPT TO not accepted from server! in ...../system/library/mail/smtp.php:259
В этой строке:
throw new Exception('Error: RCPT TO not accepted from server!');
Как сделать так, чтобы при некорректном адресе электронной почты проблемы игнорировались, и при оформлении заказа это не прерывало процесс? Спасибо
Ссылка на комментарий
Поделиться на других сайтах
-
- Поделиться
Костыльный метод — По простому закомментировать
throw new Exception('Error: RCPT TO not accepted from server!');
Т.е. «проглотить ошибку».
А по-хорошему еще как-то помечать в заказе, что email кривой.
Ссылка на комментарий
Поделиться на других сайтах
- Автор
-
- Поделиться
3 минуты назад, toporchillo сказал:
Костыльный метод — По простому закомментировать
Благодарю за рекомендацию!
Ссылка на комментарий
Поделиться на других сайтах
-
- Поделиться
1 час назад, ivane сказал:
Здравствуйте. Имеется opencart 3 и simple checkout.
Иногда покупатели вводят в поле e-mail адрес с пробелами, нелатинскими символами, либо пишут туда какую-то дичь. При этом, заказ не оформляется, а покупатель видит ошибку:
Got error 'PHP message: PHP Fatal error: Uncaught Exception: Error: RCPT TO not accepted from server! in ...../system/library/mail/smtp.php:259В этой строке:
throw new Exception('Error: RCPT TO not accepted from server!');Как сделать так, чтобы при некорректном адресе электронной почты проблемы игнорировались, и при оформлении заказа это не прерывало процесс? Спасибо
нужна валидация поля email
Ссылка на комментарий
Поделиться на других сайтах
- Автор
-
- Поделиться
26 минут назад, Venter сказал:
нужна валидация поля email
Как бы это ни было корректно, находятся люди, которые в упор не увидят, что не так с их адресом электронной почты. А там в конце пробел, который они не видят. Или точка лишняя. Один раз был покупатель, который вводил на смеси армянского языка и латиницы адрес электронной почты. Вот, например, символ «հ». Можете проверить этот символ даже здесь https://unicode-table.com/. И ведь покупателя совсем ничего не смущало.
Так что игнорировать проблему здесь будет более эффективно для получения заявки от клиента путем оформления заказа на сайте.
Изменено 31 января 2021 пользователем ivane
Ссылка на комментарий
Поделиться на других сайтах
-
- Поделиться
5 минут назад, ivane сказал:
Как бы это ни было корректно, находятся люди, которые в упор не увидят, что не так с их адресом электронной почты. А там в конце пробел, который они не видят. Или точка лишняя. Один раз был покупатель, который вводил на смеси армянского языка и латиницы адрес электронной почты. Вот, например, символ «հ». Можете проверить этот символ даже здесь https://unicode-table.com/. И ведь покупателя совсем ничего не смущало.
Так что игнорировать проблему здесь будет более эффективно для получения заявки от клиента путем оформления заказа на сайте.
И чё??? за всех людей теперь думать что он точку поставил не в том месте или еще что. выше же написал сделать валидацию, а это значит что если адрес не проходит валидацию то оформления заказа не будет пока нормальную почту не введет
Ссылка на комментарий
Поделиться на других сайтах
-
- Поделиться
игнорировать такие ошибки нельзя
Ссылка на комментарий
Поделиться на других сайтах
-
- Поделиться
20 часов назад, ivane сказал:
Так что игнорировать проблему здесь будет более эффективно для получения заявки от клиента путем оформления заказа на сайте.
*************** — проблема
но мы ее будем игнорить чтоб никто не видел что из ***************. и так и будем с ************* ходить
Выдано предупреждение:
— флуд
Наказание:
— ограничение публикаций
Ссылка на комментарий
Поделиться на других сайтах
-
- Поделиться
Только что, Venter сказал:
Так что игнорировать проблему здесь будет более эффективно для получения заявки от клиента путем оформления заказа на сайте.
это ОШИБКА!!!! Её нужно исправлять а не игнорить
Ссылка на комментарий
Поделиться на других сайтах
-
- Поделиться
20 минут назад, Venter сказал:
И чё??? за всех людей теперь думать что он точку поставил не в том месте или еще что. выше же написал сделать валидацию, а это значит что если адрес не проходит валидацию то оформления заказа не будет пока нормальную почту не введет
Мне кажется на самом деле истина где-то посередине.
Фактически магазин бьется за получение заказа, а не за корректность заполнения полей.
Поэтому было бы прикольно сделать валидацию как-то типа: если хотя бы 1 из полей email/telephone заполнено корректно — это ок и в заказе бы появлялась метка «Одно из полей заполнено не корректно — проверьте при прозвоне клиента».
Деньги клиентов, которые не корректно заполнили поле — тоже деньги, которые ничем не хуже тех, кто правильно заполнил поле. )))
Со стороны разработчика — да это конечно выглядит как косяк и проблема. Со стороны бизнеса — это не такая уж и проблема то на самом деле… Можно и обойтись, если чувак принес бабло…
-
1
Ссылка на комментарий
Поделиться на других сайтах
-
- Поделиться
10 минут назад, OtezVikentiy сказал:
Фактически магазин бьется за получение заказа, а не за корректность заполнения полей.
Поэтому было бы прикольно сделать валидацию как-то типа: если хотя бы 1 из полей email/telephone заполнено корректно — это ок и в заказе бы появлялась метка «Одно из полей заполнено не корректно — проверьте при прозвоне клиента».
как раз я про валидацию и говорю, криво ввел почту показать сообщение что ошибочка с почтой, если норм ввел то оформляем заказ
А вообще по идеи должна валидироваться поле почты. как ТС в simple checkout поставил это поле тоже не знаем, какой тип у поля тоже не знаем
Тип поля email поставить чтоб хоть на html5 валидация была, хотяб так
Изменено 31 января 2021 пользователем Venter
Ссылка на комментарий
Поделиться на других сайтах
-
- Поделиться
@Venter , я согласен, что игнорировать ошибку нехорошо. Но устранить ее правильно — это дело не одной строки и в формате совета на форуме сложно давать какие-то рекомендации.
И да, валидация на клиенте тут не поможет. В черных списках почтовиков есть куча валидных email. Например, при отправке на адрес [email protected] многие почтовики вернут ту же ошибку. Хотя это вполне валидный email.
Ссылка на комментарий
Поделиться на других сайтах
-
- Поделиться
19 минут назад, toporchillo сказал:
@Venter , я согласен, что игнорировать ошибку нехорошо. Но устранить ее правильно — это дело не одной строки и в формате совета на форуме сложно давать какие-то рекомендации.
И да, валидация на клиенте тут не поможет. В черных списках почтовиков есть куча валидных email. Например, при отправке на адрес [email protected] многие почтовики вернут ту же ошибку. Хотя это вполне валидный email.
согласен
Ссылка на комментарий
Поделиться на других сайтах
-
- Поделиться
2 часа назад, toporchillo сказал:
Например, при отправке на адрес [email protected] многие почтовики вернут ту же ошибку. Хотя это вполне валидный email.
Валидный в плане допустимых символов, а плане существования домена test.com — нет. И фактически на такой email все равно не отправить почту т.е. он нереальный, а это в случае если надо отправлять почту на этот email, а не просто для галочки нужен = не валидный email.
Ссылка на комментарий
Поделиться на других сайтах
-
- Поделиться
27 минут назад, i3bepb сказал:
Валидный в плане допустимых символов, а плане существования домена test.com — нет. И фактически на такой email все равно не отправить почту т.е. он нереальный, а это в случае если надо отправлять почту на этот email, а не просто для галочки нужен = не валидный email.
А почему Вы решили, что домена такого нет? ))) Там сайтец какой-то есть даже по этому роуту )))
Ссылка на комментарий
Поделиться на других сайтах
-
- Поделиться
Ссылка на комментарий
Поделиться на других сайтах
Создайте аккаунт или войдите в него для комментирования
Вы должны быть пользователем, чтобы оставить комментарий
Здравствуйте. Перестали приходить на почту уведомления о новых заказах и смене статуса заказа в интернет магазине. Письма не получаю ни я, ни клиенты. Я ничего не делала, не меняла настройки, не устанавливала новые модули. Разработчик написал, что бы обратилась к хостеру.
От: Андрей- 2016-05-28 07:55:07
Здравствуйте.
Данные проблемы с доставкой почты в интернет-магазинах испытывают многие наши клиенты, использующие почты mail.ru как контактный алрес администратора из-за введения политики DMARC компанией Mail.ru в одностороннем порядке.
https://mailblog.mail.ru/dmarc/
Рекомендую Вам настроить отправку почты используя протокол SMTP в панели администрирования интернет-магазина.
От: —— — 2016-05-28 08:39:34
Хорошо, я поменяю контактный адрес ( кстати, где его нужно поменять??) на gmail. Но как быть клиентам? у большинства почта на mail.ru&
От: Андрей — 2016-05-28 08:45:25
Вы можете отправлять почту клиентам с любого почтового адреса, не обязательно только mail.ru
Компания Google также может иметь похожие настройки защиты, потому всё же рекомендую Вам в настройках отправки почты с сайта настроить отправку через SMTP-сервер Mail.ru.
Для этого Вам необходимо будет указать в соответствующем меню настроек адрес почты, пароль, адрес и порт SMTP-сервера Mail.ru: https://help.mail.ru/mail-help/mailer/popsmtp
Сервер исходящей почты (SMTP-сервер) — smtp.mail.ru;
SMTP — 465 (протокол шифрования SSL/TLS).
Аутентификация — Обычный пароль (без шифрования).
В настройках почтовой программы необходимо указать, что сервер исходящей почты (или сервер SMTP) требует авторизации.
От: —— — 2016-05-28 08:53:15
Прошу Вас, сделайте это сами. xxxxx- логин xxxxx- пароль
Я понимаю, что нужно где то здесь поменять настройки, но боюсь сделать хуже.
От: Михаил 2016-05-28 08:56:35
Здравствуйте.
Клиенты это делают самостоятельно, прописывать настройки здесь https://api.monosnap.com/rpc/file/download?id=IAPs3jJsp7Lz3x9cv2sH5jU2plIoDj
От: —— — 2016-05-28 12:13:52
Я поняла, что там нужно, но не знаю, что в какой строчке писать…
От: Михаил — 2016-05-28 12:15:56
Там нужно вписывать данные ящика с какого будет происходить отправка, если вы готовы эти данные предоставить, то ждём их.
От: —— — 2016-05-28 13:18:41
Xxxxx пароль xxxxx@mail.ru
От: Михаил — 2016-05-28 13:22:31
Прописал данные SMTP, можете проверять работу.
От: —— — 2016-05-28 17:20:11
Увы.. письма не приходят. Проверила несколько раз
журнал ошибок
2016-05-28 17:17:37 — PHP Notice: Error: EHLO not accepted from server! in /var/www/data/www//system/library/mail.php on line 200
2016-05-28 17:17:37 — PHP Notice: Undefined index: order_id in /var/www//data/www//catalog/controller/payment/sbrf_online.php on line 55
2016-05-28 17:18:31 — PHP Notice: Error: EHLO not accepted from server! in /var/wwwdata/www/system/library/mail.php on line 200
От: Александр — 2016-05-28 17:29:42
Здравствуйте, работаем над вашим запросом. Как только будет результат мы вам ответим в этой заявке.
От: Александр — 2016-05-28 17:38:53
Попробуйте совершить отправку сейчас.
От: —— — 2016-05-28 17:44:45
Большое спасибо! Все работает.