📜  django 使用 html 模板发送电子邮件 - Html 代码示例

📅  最后修改于: 2022-03-11 14:53:19.777000             🧑  作者: Mango

代码示例1


    
        

Thank you for your order {{ order.full_name }}

Your Order ID: {{ order.short_uuid }}

Shipping Details:

{{ order.full_name }}
{{ order.shipping_address.street }}
{{ order.shipping_address.city }}
{{ order.shipping_address.postcode }}

Contact Details:

Email: {{ order.email }}
Phone: {{ order.phone }}

Order Details:

{% for item in order.order_items %} {% endfor %}
Product Quantity Price Total Price
{{ item.name }} {{ item.quantity }} {{ item.price }} {{ item.total_price }}
it will help you