mirror of
https://github.com/wneessen/go-mail.git
synced 2024-11-09 23:42:55 +01:00
Reformatted README.md
This commit is contained in:
parent
600ca8522e
commit
d2e5934113
1 changed files with 14 additions and 4 deletions
18
README.md
18
README.md
|
@ -69,10 +69,20 @@ func main() {
|
||||||
// Set a subject line
|
// Set a subject line
|
||||||
m.Subject("This is a great email")
|
m.Subject("This is a great email")
|
||||||
|
|
||||||
// And some other common headers
|
// And some other common headers...
|
||||||
m.SetDate() // Sets a valid "Date" header field with the current time
|
//
|
||||||
m.SetMessageID() // Generates a valid and unique "Message-ID"
|
// Sets a valid "Date" header field with the current time
|
||||||
m.SetBulk() // Sets the "Precedence"-Header to "bulk" to indicate a "bulk mail"
|
m.SetDate()
|
||||||
|
//
|
||||||
|
// Generates a valid and unique "Message-ID"
|
||||||
|
m.SetMessageID()
|
||||||
|
//
|
||||||
|
// Sets the "Precedence"-Header to "bulk" to indicate a "bulk mail"
|
||||||
|
m.SetBulk()
|
||||||
|
//
|
||||||
|
// Set a "high" importance to the mail (this sets several Header fields to
|
||||||
|
// satisfy the different common mail clients like Mail.app and Outlook)
|
||||||
|
m.SetImportance(mail.ImportanceHigh)
|
||||||
|
|
||||||
// Add your mail message to body
|
// Add your mail message to body
|
||||||
m.SetBodyString(mail.TypeTextPlain, "This is a great message body text.")
|
m.SetBodyString(mail.TypeTextPlain, "This is a great message body text.")
|
||||||
|
|
Loading…
Reference in a new issue