diff --git a/frappe/contacts/doctype/contact/contact.py b/frappe/contacts/doctype/contact/contact.py index bc3744bbad..0c78679f10 100644 --- a/frappe/contacts/doctype/contact/contact.py +++ b/frappe/contacts/doctype/contact/contact.py @@ -22,6 +22,7 @@ class Contact(Document): break def validate(self): + self.email_id = self.email_id.strip() self.set_user() if self.email_id and not self.image: self.image = has_gravatar(self.email_id)