-
Notifications
You must be signed in to change notification settings - Fork 52
Usage
zach latta edited this page May 26, 2020
·
12 revisions
Postman reads attributes from a CSV file, injects them into provided templates, then mails them through an SMTP server.
Provided CSV files must meet the following requirements:
- Have a header column
- Contain a column with a header that, when lowercased, matches "email". Ex. "Email"
- Emails to send to will be read from this column.
Email,Name,Type
arthur@dent.com,Arthur Dent,Human
ford@prefect.com,Ford Prefect,Human
martin@gpp.com,Martin,Robot
trillian@mcmillan.com,Trillian,Human
- Uses the Go template package.
- All features of the template package are supported (read: conditionals).
Hello {{.Name}}. How are you doing on this fine day? We just launched our new product!
Best regards,
ACME Corp
Hello {{.Name}},
{{if .PreviousCustomer}}
I see that you've done business with us before.
{{else}}
Would you be interested in doing business with us?
{{end}}
Best regards,
ACME Corp