WBCE CMS Forum

WBCE CMS – Way Better Content Editing.

Du bist nicht angemeldet.

#1 21.07.2022 12:53:04

gawi
Mitglied

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 15: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 16:17:09

gawi
Mitglied

Re: WBCE Mailer Settings

It solved the problem.
Thank you very much!

Offline

Fußzeile des Forums

up