title: AWS SES SDK send email with attachments
body: <p>I'm using the <a href="https://github.com/aws/aws-sdk-go" rel="noreferrer">official AWS Golang SDK</a> to integrate with SES but can't find any information about how to add some attachments (pdf file represented as []byte in code) to the email. </p>
  
  <p>Could you help me?</p>
  
  <p>The current email sending code looks like this:</p>
  
  <pre><code>sesEmailInput := &amp;ses.SendEmailInput{
      Destination: &amp;ses.Destination{
          ToAddresses: []*string{aws.String("To address")},
      },
      Message: &amp;ses.Message{
          Subject: &amp;ses.Content{
              Data: aws.String("Some text"),
          },
          Body: &amp;ses.Body{
              Html: &amp;ses.Content{
                  Data: aws.String("Some Text"),
              },
          },
      },
      Source: aws.String("From address"),
      ReplyToAddresses: []*string{
          aws.String("From address"),
      },
  }
  if _, err := s.sesSession.SendEmail(sesEmailInput); err != nil {
      return err
  }
  </code></pre>