Bulleted List in Email Document
Leave feedback
NoteIn this article, we will use GroupDocs.Assembly to generate a Bulleted List report in Email format.
NoteThe example reads the shop data described in The Business Layer.
As a report developer, you are required to share the following key requirements:
- A report must be in .eml or .msg format.
- It must add email recipient, CSS and subject of the email.
- A report must show all the products in a bulleted list format.
<<foreach [r in recipients]>><<[r]>>; <</foreach>>
<<[cc]>>
<<[subject]>>
We provide support for the following clients:
<<foreach[in products]>> ∙ <<[ProductName]>>
<</foreach>>
TipFor detailed technical information about syntax, expressions and report generation by the engine, please visit: Working with GroupDocs.Assembly Engine.
Please download the sample Bulleted List document we used in this article:
import json
from groupdocs.assembly import DataSourceInfo, DocumentAssembler
with open("products.json", encoding="utf-8") as f:
products = json.load(f)
assembler = DocumentAssembler()
assembler.assemble_document("bulleted-list.msg", "bulleted-list-report.msg", [
DataSourceInfo(products, "products"),
DataSourceInfo("Harbor Lane Provisions <orders@harborlane.example>", "sender"),
DataSourceInfo(["Quayside Bistro <orders@quaysidebistro.example>", "jonas.weber@harborlane.example"], "recipients"),
DataSourceInfo("amara.osei@harborlane.example", "cc"),
DataSourceInfo("Bulleted list", "subject"),
])
The following sample file is used in this example: bulleted-list.msg
The following sample file is used in this example: products.json
Binary file (MSG, 52 KB)
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.