Page 1 of 1

RCPT TO error catch

Posted: Wed Jun 13, 2018 3:58 pm
by michciopro@gmail.com
I have my SMTP properly configured when it comes to sending mails to real domains like xxxxx@gmail.com, but when someone enters unvalid email there is a JSON Exeption RCPT TO error and form freezes. Is there any simple way to catch this exeption and let customer enter valid email?

Re: RCPT TO error catch

Posted: Wed Jun 13, 2018 5:27 pm
by OSWorX
michciopro@gmail.com wrote:
Wed Jun 13, 2018 3:58 pm
I have my SMTP properly configured when it comes to sending mails to real domains like xxxxx@gmail.com, but when someone enters unvalid email there is a JSON Exeption RCPT TO error and form freezes. Is there any simple way to catch this exeption and let customer enter valid email?
You cannot check emails inside OpenCart with the standard functions - because they do not exist.
But I had similiar problems with fake and other email addresses in my shop.
Therefore I have made an extension which checks several attributes: validity, is known as spam, does domain and MX-Record exist.
And I can set to decline free email addresses (configurable).

Extension is available here: https://osworx.net/Security/OpenCart-Check-Email