WBCE CMS Forum

WBCE CMS – Way Better Content Editing.

You are not logged in.

#1 21.07.2022 11:53:04

gawi
Member

WBCE Mailer Settings

Hello

I have problem with Mailer settings. My domain is: mydomain.company

It is not possible to set as a "Default From Mail" mail as office@mydomain.company

I receive error:
The email address you entered is invalid.

Is there any solution for such problem?

Offline

#2 21.07.2022 14:56:00

bernd
Developer

Re: WBCE Mailer Settings

The email address check does not "know" the long TLDs yet and only allows domains with max. 6 letters.
First aid ( assuming you're using the latest WBCE version):
in admin/settings/save.php
change in line 45

$pattern = '/^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.(([0-9]{1,3})|([a-zA-Z]{2,6}))$/';

the max. length for TLDs, so it reads:

$pattern = '/^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.(([0-9]{1,3})|([a-zA-Z]{2,7}))$/';

... nein in Europa verwenden wir beim Programmieren nicht € statt $ ...

Offline

#3 21.07.2022 15:17:09

gawi
Member

Re: WBCE Mailer Settings

It solved the problem.
Thank you very much!

Offline

Board footer

up