İçereği Atla
Menü
Bu soru işaretlendi
3 Cevaplar
4779 Görünümler

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
Vazgeç
Üretici En İyi Yanıt

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
Vazgeç
En İyi Yanıt

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

Avatar
Vazgeç

Exactly something where regex is made for. +1.

İlgili Gönderiler Cevaplar Görünümler Aktivite
2
Oca 24
4274
2
Oca 24
9962
1
Mar 21
9520
0
Oca 19
7105
1
Mar 15
6859