The code has a super-simple email message with f"<html><body><p>stuff {data}</p></body></html>"
. It was jammed into an email object along with the text version. All very nice.
For a moment, I considered suggesting that f-string substitution wasn't a good long-term solution since it doesn't cover anything more than the most trivial case.
from DZone.com Feed http://bit.ly/2TmUMia
No comments:
Post a Comment