Skip to content

Commit

Permalink
Updated SES code examples in Go after editor review
Browse files Browse the repository at this point in the history
  • Loading branch information
Doug-AWS committed Jun 15, 2020
1 parent 6ce1c00 commit 81a514c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions go/ses/DeleteAddress/DeleteAddress.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func main() {
flag.Parse()

if *address == "" {
fmt.Println("You must specify a address email address")
fmt.Println("You must specify an email address")
fmt.Println("-a ADDRESS")
return
}
Expand All @@ -53,12 +53,12 @@ func main() {

err := RemoveAddress(svc, address)
if err != nil {
fmt.Println("Got an error attempting to remove email address: " + *address)
fmt.Println("Got an error attempting to remove the email address: " + *address)
fmt.Println(err)
return
}

// Display success message
fmt.Println("Removed email address: " + *address)
fmt.Println("Removed the email address: " + *address)
}
// snippet-end:[ses.go.delete_address]
8 changes: 4 additions & 4 deletions go/ses/SendMessage/SendMessage.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@ import (

// snippet-start:[ses.go.send_message.consts]
const (
// Subject is the subject line for the email.
// Subject is the subject line for the email
Subject = "Amazon SES Test (AWS SDK for Go)"

// HTMLBody is the HTML body for the email.
// HTMLBody is the HTML body for the email
HTMLBody = "<h1>Amazon SES Test Email (AWS SDK for Go)</h1><p>This email was sent with " +
"<a href='https://aws.amazon.com/ses/'>Amazon SES</a> using the " +
"<a href='https://aws.amazon.com/sdk-for-go/'>AWS SDK for Go</a>.</p>"

// TextBody is the email body for recipients with non-HTML email clients.
// TextBody is the email body for recipients with non-HTML email clients
TextBody = "This email was sent with Amazon SES using the AWS SDK for Go."

// CharSet is the character encoding for the email.
// CharSet is the character encoding for the email
CharSet = "UTF-8"
)
// snippet-end:[ses.go.send_message.consts]
Expand Down

0 comments on commit 81a514c

Please sign in to comment.