Skip to Content
मेन्यू
This question has been flagged
3 Replies
4767 Views

Hi!

I am trying to use the email_from field as receiving address in an email template. These addresses are not in our partner database. Unfortunately most emails come in with special characters like "JohnDoe"<jd@mail.xy>. The characters "<> mess up the mail address created through email_from.

How can I get around this? Thanks for any help!

Avatar
Discard
Author Best Answer

Thank you for your comments about using RegEx, but there is even a much simpler solution: just use the |safe option.

The field sniplet ${object.email_from|safe} works perfectly.

Avatar
Discard
Best Answer

Maybe you can use regexp to clean up the addresses: https://docs.python.org/2/library/re.html

Avatar
Discard

Exactly something where regex is made for. +1.

Related Posts Replies Views Activity
2
जन॰ 24
4260
2
जन॰ 24
9941
1
मार्च 21
9494
0
जन॰ 19
7094
1
मार्च 15
6847