콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
3 답글
4962 화면

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!

아바타
취소
작성자 베스트 답변

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.

아바타
취소
베스트 답변

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

아바타
취소

Exactly something where regex is made for. +1.

관련 게시물 답글 화면 활동
2
2월 24
4596
2
1월 24
10337
1
3월 21
9783
0
1월 19
7320
1
3월 15
7108