Email validation in the CP
anthony8bc opened this issue · comments
Description of the problem
When setting up the email service via:
Settings -> Outgoing Email
or attempting to send an email from the CP:
Tools -> Utilities -> Send Email
the validation for the Email field does not recognise an address such as globalsecurity@pmb.ox.ac.uk as being valid
How To Reproduce
Steps to reproduce the behavior:
Go to either Outgoing Email or Send mail and attempt to use globalsecurity@pmb.ox.ac.uk
as an email address.
Error Messages
This field must contain a valid email address
@anthony8bc what version of ExpressionEngine are you encountering this? I wasn't able to reproduce the error in 7.4.9 when I tested the Send Email utility with the data shown in your screenshot.
@bryannielsen - we're using v7.3.14.
I've just tested again and I've found that in the Send Email utility the validation is actually failing because I had a left a space at the end of the email address. I tried using different email addresses and each one fails validation if there's a trailing space at the end of the address. Removing the space passes validation. I didn't spot this before.