This is a simple library to simplify the process of using SendGrid's X-SMTPAPI.
All updates to this library is documented in our CHANGELOG.
- Go version 1.6
- The SendGrid service, starting at the free level
go get github.com/sendgrid/smtpapi/go
package main
import (
"github.com/sendgrid/smtpapi-go"
"fmt"
)
func main() {
header := smtpapi.NewSMTPAPIHeader()
header.AddTo("test@example.com")
fmt.Println(header.JSONString())
}
If you are interested in the future direction of this project, please take a look at our milestones. We would love to hear your feedback.
We encourage contribution to our libraries, please see our CONTRIBUTING guide for details.
Quick links:
smtpapi-go is guided and supported by the SendGrid Developer Experience Team.
smtpapi-go is maintained and funded by SendGrid, Inc. The names and logos for smtpapi-go are trademarks of SendGrid, Inc.
![SendGrid Logo] (https://uiux.s3.amazonaws.com/2016-logos/email-logo%402x.png)