This forum is no longer open and is for reading/searching only.
Please use our new MachForm Community Forum instead.
MachForm Community Forums » MachForm 3
Problems with Dots in E-Mail Address Fields
Started 12 years ago by paulrueder | 2 posts |
-
Hi,
i've running machform 3.3.
It seems that the email address field dont accept email adresses with dots in front of the @-character like:
It throws a 500 internal server error for me. test.test@googlemail.com and all other addresses are working properly.
What can it be?
It would be nice if anyone can help me out with this :).
Regards,
Posted 12 years ago # -
The mailer library seems to reject that address. To fix this, you can edit "machform/admin/lib/swift-mailer/classes/Swift/Mime/Headers/MailboxHEader.php" file. At the end of that file, you'll find this block of code:
private function _assertValidAddress($address) { if (!preg_match('/^' . $this->getGrammar()->getDefinition('addr-spec') . '$/D', $address)) { throw new Swift_RfcComplianceException( 'Address in mailbox given [' . $address . '] does not comply with RFC 2822, 3.6.2.' ); } }
change it to become:
private function _assertValidAddress($address) { }
that should remove the extra validation being done by the mailer library (which is not necessary since MachForm already validate the email address) and fix the issue.
If you are having difficulty, please contact us directly and we'll send you the file.
MachForm Founder
Posted 12 years ago #
Reply
You must log in to post.