Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Django を使用してアプリ エンジンでメールの本文をフォーマットできるかどうかを理解しようとしています。Django で Web サイトのフォーマットはすべて持っているのですが、メールで同じことができるかどうかわかりません。ありがとう。
コメントを書いている間、私は解決策を得ました:
testo = template.render(u'prova.html',{'prova':prova}) mail.send_mail(sender=email, to=email2, subject=oggetto,body=testo)
あなたはできる。HTML ファイルは必要ありません。テンプレートに .txt ファイルを使用することもできます。