Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
3 Antwoorden
4789 Weergaven

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
Annuleer
Auteur Beste antwoord

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
Annuleer
Beste antwoord

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

Avatar
Annuleer

Exactly something where regex is made for. +1.

Gerelateerde posts Antwoorden Weergaven Activiteit
2
jan. 24
4321
2
jan. 24
9998
1
mrt. 21
9559
0
jan. 19
7132
1
mrt. 15
6903