👉 Amazon Simple Email Service Template (Amazon SES) is a highly scalable and cost-effective bulk and transactional email-sending service for businesses and developers. Subscription is quick and is on pay-as-you-go basis. You can read more about Amazon SES here 👏. Create an AwsSES.go file (Code Explained below) package main import ( "fmt" "utilities" "github.com/spf13/cast" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/ses" ) const ( sesRegion = "us-east-1" ) /* Create SES Session Function */ func newSESSession() (*session.Session, error) { return session.NewSession(&aws.Config{ Region: aws.String(sesRegion), }) } Create a Template Struct Format // SESTemplate ... contains template name, subject, htmlpart & text part type SESTemplate struct { TemplateName string `json:"templateName"` Subject stri...
it's always a good idea to keep track of your learning.