package
3.16.0+incompatible
Repository: https://github.com/sendgrid/sendgrid-go.git
Documentation: pkg.go.dev
# README
This helper allows you to quickly and easily build a Mail object for sending email through Twilio SendGrid.
Dependencies
Quick Start
Run the example (make sure you have set your environment variable to include your SENDGRID_API_KEY).
go run examples/helpers/mail/example.go
Usage
- See the example for a complete working example.
- Documentation
Test
go test ./... -v
or
cd helpers/mail
go test -v
# Functions
GetRequestBody ...
NewASM ...
NewAttachment ...
NewBCCSetting ...
NewClickTrackingSetting ...
NewContent ...
NewEmail ...
NewFooterSetting ...
NewGaSetting ...
NewMailSettings ...
NewOpenTrackingSetting ...
NewPersonalization ...
NewSandboxModeSetting ...
NewSetting ...
NewSingleEmail ...
NewSingleEmailPlainText is used to build *SGMailV3 object having only 'plain-text' as email content.
NewSpamCheckSetting ...
NewSubscriptionTrackingSetting ...
NewTrackingSettings ...
NewV3Mail ...
NewV3MailInit ...
ParseEmail parses a string that contains an rfc822 formatted email address and returns an instance of *Email.
# Structs
Asm contains Grpip Id and int array of groups ID.
Attachment holds attachement information.
BccSetting holds email bcc setings to enable of disable default is false.
ClickTrackingSetting ...
Content defines content of the mail body.
Email holds email name and address info.
FooterSetting holds enaable/disable settings and the format of footer i.e HTML/Text.
GaSetting ...
MailSettings defines mail and spamCheck settings.
OpenTrackingSetting ...
Personalization holds mail body struct.
SandboxModeSetting ...
Setting enables the mail settings.
SGMailV3 contains mail struct.
SpamCheckSetting holds spam settings and which can be enable or disable and contains spamThreshold value.
SubscriptionTrackingSetting ...
TrackingSettings holds tracking settings and mail settings.