ses

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2021 License: MIT Imports: 12 Imported by: 0

README

aws-sdk-go-v2-wrapper | SES

Quick Usage

import (
	"context"

	"github.com/evalphobia/aws-sdk-go-v2-wrapper/config"
	"github.com/evalphobia/aws-sdk-go-v2-wrapper/ses"
)

func main() {
	svc, err := ses.New(config.Config{
		AccessKey: "<...>",
		SecretKey: "<...>",
	})
	if err != nil {
		panic(err)
	}
	ctx := context.Background()


	// send email with csv file
	err = svc.XSendRawEmail(ctx, ses.XSendRawEmailRequest{
		From:     "from@example.com",
		To:       []string{"to1@example.com", "to2@example.com"},
		Subject:  "nice subject",
		TextBody: "nice body",
		HTMLBody: "<!DOCTYPE html><html lang="en"><body><p style="text-align: center;">I love you!</p></body></html>",
		Attachments: []ses.XAttachment{
			{
				Data:                    []byte(base64.StdEncoding.EncodeToString([]byte(`date,count\n2020-01-01,100`))),
				Filename:                "foo.csv",
				MIMEType:                "text/csv",
				ContentTransferEncoding: "base64",
			},
		},
	})
	if err != nil {
		panic(err)
	}
	// ...
}

X API

Name Description
XSendRawEmail sends email with easy option for attachment files.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BulkEmailDestination added in v0.3.0

type BulkEmailDestination struct {
	Destination             Destination
	ReplacementTags         []MessageTag
	ReplacementTemplateData string
}

func (BulkEmailDestination) ToSDK added in v0.3.0

type BulkEmailDestinationStatus added in v0.3.0

type BulkEmailDestinationStatus struct {
	Error     string
	MessageID string
	Status    BulkEmailStatus
}

type BulkEmailStatus added in v0.3.0

type BulkEmailStatus string
const (
	BulkEmailStatusSuccess                       BulkEmailStatus = BulkEmailStatus(SDK.BulkEmailStatusSuccess)
	BulkEmailStatusMessageRejected               BulkEmailStatus = BulkEmailStatus(SDK.BulkEmailStatusMessageRejected)
	BulkEmailStatusMailFromDomainNotVerified     BulkEmailStatus = BulkEmailStatus(SDK.BulkEmailStatusMailFromDomainNotVerified)
	BulkEmailStatusConfigurationSetDoesNotExist  BulkEmailStatus = BulkEmailStatus(SDK.BulkEmailStatusConfigurationSetDoesNotExist)
	BulkEmailStatusTemplateDoesNotExist          BulkEmailStatus = BulkEmailStatus(SDK.BulkEmailStatusTemplateDoesNotExist)
	BulkEmailStatusAccountSuspended              BulkEmailStatus = BulkEmailStatus(SDK.BulkEmailStatusAccountSuspended)
	BulkEmailStatusAccountThrottled              BulkEmailStatus = BulkEmailStatus(SDK.BulkEmailStatusAccountThrottled)
	BulkEmailStatusAccountDailyQuotaExceeded     BulkEmailStatus = BulkEmailStatus(SDK.BulkEmailStatusAccountDailyQuotaExceeded)
	BulkEmailStatusInvalidSendingPoolName        BulkEmailStatus = BulkEmailStatus(SDK.BulkEmailStatusInvalidSendingPoolName)
	BulkEmailStatusAccountSendingPaused          BulkEmailStatus = BulkEmailStatus(SDK.BulkEmailStatusAccountSendingPaused)
	BulkEmailStatusConfigurationSetSendingPaused BulkEmailStatus = BulkEmailStatus(SDK.BulkEmailStatusConfigurationSetSendingPaused)
	BulkEmailStatusInvalidParameterValue         BulkEmailStatus = BulkEmailStatus(SDK.BulkEmailStatusInvalidParameterValue)
	BulkEmailStatusTransientFailure              BulkEmailStatus = BulkEmailStatus(SDK.BulkEmailStatusTransientFailure)
	BulkEmailStatusFailed                        BulkEmailStatus = BulkEmailStatus(SDK.BulkEmailStatusFailed)
)

type Destination added in v0.3.0

type Destination struct {
	BccAddresses []string
	CcAddresses  []string
	ToAddresses  []string
}

func (Destination) ToSDK added in v0.3.0

func (r Destination) ToSDK() *SDK.Destination

type MessageTag

type MessageTag struct {
	Name  string
	Value string
}

func (MessageTag) ToSDK

func (r MessageTag) ToSDK() SDK.MessageTag

type SES

type SES struct {
	// contains filtered or unexported fields
}

SES has SES client.

func New

func New(conf config.Config) (*SES, error)

New returns initialized *SES.

func (*SES) Errorf

func (svc *SES) Errorf(format string, v ...interface{})

Errorf logging error information.

func (*SES) GetClient

func (svc *SES) GetClient() *SDK.Client

GetClient gets original SDK client.

func (*SES) Infof

func (svc *SES) Infof(format string, v ...interface{})

Infof logging information.

func (*SES) RawCloneReceiptRuleSet

func (svc *SES) RawCloneReceiptRuleSet(ctx context.Context, in *SDK.CloneReceiptRuleSetInput) (*SDK.CloneReceiptRuleSetResponse, error)

RawCloneReceiptRuleSet executes `CloneReceiptRuleSet` raw operation.

func (*SES) RawCreateConfigurationSet

func (svc *SES) RawCreateConfigurationSet(ctx context.Context, in *SDK.CreateConfigurationSetInput) (*SDK.CreateConfigurationSetResponse, error)

RawCreateConfigurationSet executes `CreateConfigurationSet` raw operation.

func (*SES) RawCreateConfigurationSetEventDestination

RawCreateConfigurationSetEventDestination executes `CreateConfigurationSetEventDestination` raw operation.

func (*SES) RawCreateConfigurationSetTrackingOptions

RawCreateConfigurationSetTrackingOptions executes `CreateConfigurationSetTrackingOptions` raw operation.

func (*SES) RawCreateCustomVerificationEmailTemplate

RawCreateCustomVerificationEmailTemplate executes `CreateCustomVerificationEmailTemplate` raw operation.

func (*SES) RawCreateReceiptFilter

func (svc *SES) RawCreateReceiptFilter(ctx context.Context, in *SDK.CreateReceiptFilterInput) (*SDK.CreateReceiptFilterResponse, error)

RawCreateReceiptFilter executes `CreateReceiptFilter` raw operation.

func (*SES) RawCreateReceiptRule

func (svc *SES) RawCreateReceiptRule(ctx context.Context, in *SDK.CreateReceiptRuleInput) (*SDK.CreateReceiptRuleResponse, error)

RawCreateReceiptRule executes `CreateReceiptRule` raw operation.

func (*SES) RawCreateReceiptRuleSet

func (svc *SES) RawCreateReceiptRuleSet(ctx context.Context, in *SDK.CreateReceiptRuleSetInput) (*SDK.CreateReceiptRuleSetResponse, error)

RawCreateReceiptRuleSet executes `CreateReceiptRuleSet` raw operation.

func (*SES) RawCreateTemplate

func (svc *SES) RawCreateTemplate(ctx context.Context, in *SDK.CreateTemplateInput) (*SDK.CreateTemplateResponse, error)

RawCreateTemplate executes `CreateTemplate` raw operation.

func (*SES) RawDeleteConfigurationSet

func (svc *SES) RawDeleteConfigurationSet(ctx context.Context, in *SDK.DeleteConfigurationSetInput) (*SDK.DeleteConfigurationSetResponse, error)

RawDeleteConfigurationSet executes `DeleteConfigurationSet` raw operation.

func (*SES) RawDeleteConfigurationSetEventDestination

RawDeleteConfigurationSetEventDestination executes `DeleteConfigurationSetEventDestination` raw operation.

func (*SES) RawDeleteConfigurationSetTrackingOptions

RawDeleteConfigurationSetTrackingOptions executes `DeleteConfigurationSetTrackingOptions` raw operation.

func (*SES) RawDeleteCustomVerificationEmailTemplate

RawDeleteCustomVerificationEmailTemplate executes `DeleteCustomVerificationEmailTemplate` raw operation.

func (*SES) RawDeleteIdentity

func (svc *SES) RawDeleteIdentity(ctx context.Context, in *SDK.DeleteIdentityInput) (*SDK.DeleteIdentityResponse, error)

RawDeleteIdentity executes `DeleteIdentity` raw operation.

func (*SES) RawDeleteIdentityPolicy

func (svc *SES) RawDeleteIdentityPolicy(ctx context.Context, in *SDK.DeleteIdentityPolicyInput) (*SDK.DeleteIdentityPolicyResponse, error)

RawDeleteIdentityPolicy executes `DeleteIdentityPolicy` raw operation.

func (*SES) RawDeleteReceiptFilter

func (svc *SES) RawDeleteReceiptFilter(ctx context.Context, in *SDK.DeleteReceiptFilterInput) (*SDK.DeleteReceiptFilterResponse, error)

RawDeleteReceiptFilter executes `DeleteReceiptFilter` raw operation.

func (*SES) RawDeleteReceiptRule

func (svc *SES) RawDeleteReceiptRule(ctx context.Context, in *SDK.DeleteReceiptRuleInput) (*SDK.DeleteReceiptRuleResponse, error)

RawDeleteReceiptRule executes `DeleteReceiptRule` raw operation.

func (*SES) RawDeleteReceiptRuleSet

func (svc *SES) RawDeleteReceiptRuleSet(ctx context.Context, in *SDK.DeleteReceiptRuleSetInput) (*SDK.DeleteReceiptRuleSetResponse, error)

RawDeleteReceiptRuleSet executes `DeleteReceiptRuleSet` raw operation.

func (*SES) RawDeleteTemplate

func (svc *SES) RawDeleteTemplate(ctx context.Context, in *SDK.DeleteTemplateInput) (*SDK.DeleteTemplateResponse, error)

RawDeleteTemplate executes `DeleteTemplate` raw operation.

func (*SES) RawDeleteVerifiedEmailAddress

func (svc *SES) RawDeleteVerifiedEmailAddress(ctx context.Context, in *SDK.DeleteVerifiedEmailAddressInput) (*SDK.DeleteVerifiedEmailAddressResponse, error)

RawDeleteVerifiedEmailAddress executes `DeleteVerifiedEmailAddress` raw operation.

func (*SES) RawDescribeActiveReceiptRuleSet

func (svc *SES) RawDescribeActiveReceiptRuleSet(ctx context.Context, in *SDK.DescribeActiveReceiptRuleSetInput) (*SDK.DescribeActiveReceiptRuleSetResponse, error)

RawDescribeActiveReceiptRuleSet executes `DescribeActiveReceiptRuleSet` raw operation.

func (*SES) RawDescribeConfigurationSet

func (svc *SES) RawDescribeConfigurationSet(ctx context.Context, in *SDK.DescribeConfigurationSetInput) (*SDK.DescribeConfigurationSetResponse, error)

RawDescribeConfigurationSet executes `DescribeConfigurationSet` raw operation.

func (*SES) RawDescribeReceiptRule

func (svc *SES) RawDescribeReceiptRule(ctx context.Context, in *SDK.DescribeReceiptRuleInput) (*SDK.DescribeReceiptRuleResponse, error)

RawDescribeReceiptRule executes `DescribeReceiptRule` raw operation.

func (*SES) RawDescribeReceiptRuleSet

func (svc *SES) RawDescribeReceiptRuleSet(ctx context.Context, in *SDK.DescribeReceiptRuleSetInput) (*SDK.DescribeReceiptRuleSetResponse, error)

RawDescribeReceiptRuleSet executes `DescribeReceiptRuleSet` raw operation.

func (*SES) RawGetAccountSendingEnabled

func (svc *SES) RawGetAccountSendingEnabled(ctx context.Context, in *SDK.GetAccountSendingEnabledInput) (*SDK.GetAccountSendingEnabledResponse, error)

RawGetAccountSendingEnabled executes `GetAccountSendingEnabled` raw operation.

func (*SES) RawGetCustomVerificationEmailTemplate

func (svc *SES) RawGetCustomVerificationEmailTemplate(ctx context.Context, in *SDK.GetCustomVerificationEmailTemplateInput) (*SDK.GetCustomVerificationEmailTemplateResponse, error)

RawGetCustomVerificationEmailTemplate executes `GetCustomVerificationEmailTemplate` raw operation.

func (*SES) RawGetIdentityDkimAttributes

func (svc *SES) RawGetIdentityDkimAttributes(ctx context.Context, in *SDK.GetIdentityDkimAttributesInput) (*SDK.GetIdentityDkimAttributesResponse, error)

RawGetIdentityDkimAttributes executes `GetIdentityDkimAttributes` raw operation.

func (*SES) RawGetIdentityMailFromDomainAttributes

func (svc *SES) RawGetIdentityMailFromDomainAttributes(ctx context.Context, in *SDK.GetIdentityMailFromDomainAttributesInput) (*SDK.GetIdentityMailFromDomainAttributesResponse, error)

RawGetIdentityMailFromDomainAttributes executes `GetIdentityMailFromDomainAttributes` raw operation.

func (*SES) RawGetIdentityNotificationAttributes

func (svc *SES) RawGetIdentityNotificationAttributes(ctx context.Context, in *SDK.GetIdentityNotificationAttributesInput) (*SDK.GetIdentityNotificationAttributesResponse, error)

RawGetIdentityNotificationAttributes executes `GetIdentityNotificationAttributes` raw operation.

func (*SES) RawGetIdentityPolicies

func (svc *SES) RawGetIdentityPolicies(ctx context.Context, in *SDK.GetIdentityPoliciesInput) (*SDK.GetIdentityPoliciesResponse, error)

RawGetIdentityPolicies executes `GetIdentityPolicies` raw operation.

func (*SES) RawGetIdentityVerificationAttributes

func (svc *SES) RawGetIdentityVerificationAttributes(ctx context.Context, in *SDK.GetIdentityVerificationAttributesInput) (*SDK.GetIdentityVerificationAttributesResponse, error)

RawGetIdentityVerificationAttributes executes `GetIdentityVerificationAttributes` raw operation.

func (*SES) RawGetSendQuota

func (svc *SES) RawGetSendQuota(ctx context.Context, in *SDK.GetSendQuotaInput) (*SDK.GetSendQuotaResponse, error)

RawGetSendQuota executes `GetSendQuota` raw operation.

func (*SES) RawGetSendStatistics

func (svc *SES) RawGetSendStatistics(ctx context.Context, in *SDK.GetSendStatisticsInput) (*SDK.GetSendStatisticsResponse, error)

RawGetSendStatistics executes `GetSendStatistics` raw operation.

func (*SES) RawGetTemplate

func (svc *SES) RawGetTemplate(ctx context.Context, in *SDK.GetTemplateInput) (*SDK.GetTemplateResponse, error)

RawGetTemplate executes `GetTemplate` raw operation.

func (*SES) RawListConfigurationSets

func (svc *SES) RawListConfigurationSets(ctx context.Context, in *SDK.ListConfigurationSetsInput) (*SDK.ListConfigurationSetsResponse, error)

RawListConfigurationSets executes `ListConfigurationSets` raw operation.

func (*SES) RawListCustomVerificationEmailTemplates

RawListCustomVerificationEmailTemplates executes `ListCustomVerificationEmailTemplates` raw operation.

func (*SES) RawListIdentities

func (svc *SES) RawListIdentities(ctx context.Context, in *SDK.ListIdentitiesInput) (*SDK.ListIdentitiesResponse, error)

RawListIdentities executes `ListIdentities` raw operation.

func (*SES) RawListIdentityPolicies

func (svc *SES) RawListIdentityPolicies(ctx context.Context, in *SDK.ListIdentityPoliciesInput) (*SDK.ListIdentityPoliciesResponse, error)

RawListIdentityPolicies executes `ListIdentityPolicies` raw operation.

func (*SES) RawListReceiptFilters

func (svc *SES) RawListReceiptFilters(ctx context.Context, in *SDK.ListReceiptFiltersInput) (*SDK.ListReceiptFiltersResponse, error)

RawListReceiptFilters executes `ListReceiptFilters` raw operation.

func (*SES) RawListReceiptRuleSets

func (svc *SES) RawListReceiptRuleSets(ctx context.Context, in *SDK.ListReceiptRuleSetsInput) (*SDK.ListReceiptRuleSetsResponse, error)

RawListReceiptRuleSets executes `ListReceiptRuleSets` raw operation.

func (*SES) RawListTemplates

func (svc *SES) RawListTemplates(ctx context.Context, in *SDK.ListTemplatesInput) (*SDK.ListTemplatesResponse, error)

RawListTemplates executes `ListTemplates` raw operation.

func (*SES) RawListVerifiedEmailAddresses

func (svc *SES) RawListVerifiedEmailAddresses(ctx context.Context, in *SDK.ListVerifiedEmailAddressesInput) (*SDK.ListVerifiedEmailAddressesResponse, error)

RawListVerifiedEmailAddresses executes `ListVerifiedEmailAddresses` raw operation.

func (*SES) RawPutConfigurationSetDeliveryOptions

func (svc *SES) RawPutConfigurationSetDeliveryOptions(ctx context.Context, in *SDK.PutConfigurationSetDeliveryOptionsInput) (*SDK.PutConfigurationSetDeliveryOptionsResponse, error)

RawPutConfigurationSetDeliveryOptions executes `PutConfigurationSetDeliveryOptions` raw operation.

func (*SES) RawPutIdentityPolicy

func (svc *SES) RawPutIdentityPolicy(ctx context.Context, in *SDK.PutIdentityPolicyInput) (*SDK.PutIdentityPolicyResponse, error)

RawPutIdentityPolicy executes `PutIdentityPolicy` raw operation.

func (*SES) RawReorderReceiptRuleSet

func (svc *SES) RawReorderReceiptRuleSet(ctx context.Context, in *SDK.ReorderReceiptRuleSetInput) (*SDK.ReorderReceiptRuleSetResponse, error)

RawReorderReceiptRuleSet executes `ReorderReceiptRuleSet` raw operation.

func (*SES) RawSendBounce

func (svc *SES) RawSendBounce(ctx context.Context, in *SDK.SendBounceInput) (*SDK.SendBounceResponse, error)

RawSendBounce executes `SendBounce` raw operation.

func (*SES) RawSendBulkTemplatedEmail

func (svc *SES) RawSendBulkTemplatedEmail(ctx context.Context, in *SDK.SendBulkTemplatedEmailInput) (*SDK.SendBulkTemplatedEmailResponse, error)

RawSendBulkTemplatedEmail executes `SendBulkTemplatedEmail` raw operation.

func (*SES) RawSendCustomVerificationEmail

func (svc *SES) RawSendCustomVerificationEmail(ctx context.Context, in *SDK.SendCustomVerificationEmailInput) (*SDK.SendCustomVerificationEmailResponse, error)

RawSendCustomVerificationEmail executes `SendCustomVerificationEmail` raw operation.

func (*SES) RawSendEmail

func (svc *SES) RawSendEmail(ctx context.Context, in *SDK.SendEmailInput) (*SDK.SendEmailResponse, error)

RawSendEmail executes `SendEmail` raw operation.

func (*SES) RawSendRawEmail

func (svc *SES) RawSendRawEmail(ctx context.Context, in *SDK.SendRawEmailInput) (*SDK.SendRawEmailResponse, error)

RawSendRawEmail executes `SendRawEmail` raw operation.

func (*SES) RawSendTemplatedEmail

func (svc *SES) RawSendTemplatedEmail(ctx context.Context, in *SDK.SendTemplatedEmailInput) (*SDK.SendTemplatedEmailResponse, error)

RawSendTemplatedEmail executes `SendTemplatedEmail` raw operation.

func (*SES) RawSetActiveReceiptRuleSet

func (svc *SES) RawSetActiveReceiptRuleSet(ctx context.Context, in *SDK.SetActiveReceiptRuleSetInput) (*SDK.SetActiveReceiptRuleSetResponse, error)

RawSetActiveReceiptRuleSet executes `SetActiveReceiptRuleSet` raw operation.

func (*SES) RawSetIdentityDkimEnabled

func (svc *SES) RawSetIdentityDkimEnabled(ctx context.Context, in *SDK.SetIdentityDkimEnabledInput) (*SDK.SetIdentityDkimEnabledResponse, error)

RawSetIdentityDkimEnabled executes `SetIdentityDkimEnabled` raw operation.

func (*SES) RawSetIdentityFeedbackForwardingEnabled

RawSetIdentityFeedbackForwardingEnabled executes `SetIdentityFeedbackForwardingEnabled` raw operation.

func (*SES) RawSetIdentityHeadersInNotificationsEnabled

RawSetIdentityHeadersInNotificationsEnabled executes `SetIdentityHeadersInNotificationsEnabled` raw operation.

func (*SES) RawSetIdentityMailFromDomain

func (svc *SES) RawSetIdentityMailFromDomain(ctx context.Context, in *SDK.SetIdentityMailFromDomainInput) (*SDK.SetIdentityMailFromDomainResponse, error)

RawSetIdentityMailFromDomain executes `SetIdentityMailFromDomain` raw operation.

func (*SES) RawSetIdentityNotificationTopic

func (svc *SES) RawSetIdentityNotificationTopic(ctx context.Context, in *SDK.SetIdentityNotificationTopicInput) (*SDK.SetIdentityNotificationTopicResponse, error)

RawSetIdentityNotificationTopic executes `SetIdentityNotificationTopic` raw operation.

func (*SES) RawSetReceiptRulePosition

func (svc *SES) RawSetReceiptRulePosition(ctx context.Context, in *SDK.SetReceiptRulePositionInput) (*SDK.SetReceiptRulePositionResponse, error)

RawSetReceiptRulePosition executes `SetReceiptRulePosition` raw operation.

func (*SES) RawTestRenderTemplate

func (svc *SES) RawTestRenderTemplate(ctx context.Context, in *SDK.TestRenderTemplateInput) (*SDK.TestRenderTemplateResponse, error)

RawTestRenderTemplate executes `TestRenderTemplate` raw operation.

func (*SES) RawUpdateAccountSendingEnabled

func (svc *SES) RawUpdateAccountSendingEnabled(ctx context.Context, in *SDK.UpdateAccountSendingEnabledInput) (*SDK.UpdateAccountSendingEnabledResponse, error)

RawUpdateAccountSendingEnabled executes `UpdateAccountSendingEnabled` raw operation.

func (*SES) RawUpdateConfigurationSetEventDestination

RawUpdateConfigurationSetEventDestination executes `UpdateConfigurationSetEventDestination` raw operation.

func (*SES) RawUpdateConfigurationSetReputationMetricsEnabled

RawUpdateConfigurationSetReputationMetricsEnabled executes `UpdateConfigurationSetReputationMetricsEnabled` raw operation.

func (*SES) RawUpdateConfigurationSetSendingEnabled

RawUpdateConfigurationSetSendingEnabled executes `UpdateConfigurationSetSendingEnabled` raw operation.

func (*SES) RawUpdateConfigurationSetTrackingOptions

RawUpdateConfigurationSetTrackingOptions executes `UpdateConfigurationSetTrackingOptions` raw operation.

func (*SES) RawUpdateCustomVerificationEmailTemplate

RawUpdateCustomVerificationEmailTemplate executes `UpdateCustomVerificationEmailTemplate` raw operation.

func (*SES) RawUpdateReceiptRule

func (svc *SES) RawUpdateReceiptRule(ctx context.Context, in *SDK.UpdateReceiptRuleInput) (*SDK.UpdateReceiptRuleResponse, error)

RawUpdateReceiptRule executes `UpdateReceiptRule` raw operation.

func (*SES) RawUpdateTemplate

func (svc *SES) RawUpdateTemplate(ctx context.Context, in *SDK.UpdateTemplateInput) (*SDK.UpdateTemplateResponse, error)

RawUpdateTemplate executes `UpdateTemplate` raw operation.

func (*SES) RawVerifyDomainDkim

func (svc *SES) RawVerifyDomainDkim(ctx context.Context, in *SDK.VerifyDomainDkimInput) (*SDK.VerifyDomainDkimResponse, error)

RawVerifyDomainDkim executes `VerifyDomainDkim` raw operation.

func (*SES) RawVerifyDomainIdentity

func (svc *SES) RawVerifyDomainIdentity(ctx context.Context, in *SDK.VerifyDomainIdentityInput) (*SDK.VerifyDomainIdentityResponse, error)

RawVerifyDomainIdentity executes `VerifyDomainIdentity` raw operation.

func (*SES) RawVerifyEmailAddress

func (svc *SES) RawVerifyEmailAddress(ctx context.Context, in *SDK.VerifyEmailAddressInput) (*SDK.VerifyEmailAddressResponse, error)

RawVerifyEmailAddress executes `VerifyEmailAddress` raw operation.

func (*SES) RawVerifyEmailIdentity

func (svc *SES) RawVerifyEmailIdentity(ctx context.Context, in *SDK.VerifyEmailIdentityInput) (*SDK.VerifyEmailIdentityResponse, error)

RawVerifyEmailIdentity executes `VerifyEmailIdentity` raw operation.

func (*SES) SendBulkTemplatedEmail added in v0.3.0

func (svc *SES) SendBulkTemplatedEmail(ctx context.Context, r SendBulkTemplatedEmailRequest) (*SendBulkTemplatedEmailResult, error)

SendBulkTemplatedEmail executes `SendBulkTemplatedEmail` operation.

func (*SES) SendEmail added in v0.3.0

func (svc *SES) SendEmail(ctx context.Context, r SendEmailRequest) (*SendEmailResult, error)

SendEmail executes `SendEmail` operation.

func (*SES) SendRawEmail

func (svc *SES) SendRawEmail(ctx context.Context, r SendRawEmailRequest) (*SendRawEmailResult, error)

SendRawEmail executes `SendRawEmail` operation.

func (*SES) SendTemplatedEmail added in v0.3.0

func (svc *SES) SendTemplatedEmail(ctx context.Context, r SendTemplatedEmailRequest) (*SendTemplatedEmailResult, error)

SendTemplatedEmail executes `SendTemplatedEmail` operation.

func (*SES) SetLogger

func (svc *SES) SetLogger(logger log.Logger)

SetLogger sets logger.

func (*SES) XSendBulkTemplatedEmail added in v0.3.0

func (svc *SES) XSendBulkTemplatedEmail(ctx context.Context, r XSendBulkTemplatedEmailRequest) (*SendBulkTemplatedEmailResult, error)

XSendBulkTemplatedEmail sends bulk template emails.

func (*SES) XSendBulkTemplatedEmailEachList added in v0.3.0

func (svc *SES) XSendBulkTemplatedEmailEachList(ctx context.Context, template, from string, to []string, templateData []map[string]interface{}) (*SendBulkTemplatedEmailResult, error)

XSendBulkTemplatedEmailEachList sends bulk template emails.

func (*SES) XSendEmailHTML added in v0.3.0

func (svc *SES) XSendEmailHTML(ctx context.Context, subject, body, from string, to ...string) error

XSendEmailHTML sends HTML type email.

func (*SES) XSendEmailText added in v0.3.0

func (svc *SES) XSendEmailText(ctx context.Context, subject, body, from string, to ...string) error

XSendEmailText sends text type email.

func (*SES) XSendRawEmail

func (svc *SES) XSendRawEmail(ctx context.Context, r XSendRawEmailRequest) error

XSendRawEmail sends raw email.

type SendBulkTemplatedEmailRequest added in v0.3.0

type SendBulkTemplatedEmailRequest struct {
	Destinations []BulkEmailDestination
	Source       string
	Template     string

	// optional
	ConfigurationSetName string
	DefaultTags          []MessageTag
	DefaultTemplateData  string
	ReplyToAddresses     []string
	ReturnPath           string
	ReturnPathARN        string
	SourceARN            string
	TemplateARN          string
}

SendBulkTemplatedEmailRequest has parameters for `SendBulkTemplatedEmail` operation.

func (SendBulkTemplatedEmailRequest) ToInput added in v0.3.0

type SendBulkTemplatedEmailResult added in v0.3.0

type SendBulkTemplatedEmailResult struct {
	Status []BulkEmailDestinationStatus
}

func NewSendBulkTemplatedEmailResult added in v0.3.0

func NewSendBulkTemplatedEmailResult(o *SDK.SendBulkTemplatedEmailResponse) *SendBulkTemplatedEmailResult

type SendEmailRequest added in v0.3.0

type SendEmailRequest struct {
	Destination Destination
	Source      string

	Subject        string
	SubjectCharset string // optional

	// Either HTMLBody or TextBody is required
	HTMLBody    string
	HTMLCharset string
	TextBody    string
	TextCharset string

	// optional
	ConfigurationSetName string
	ReplyToAddresses     []string
	ReturnPath           string
	ReturnPathARN        string
	SourceARN            string
	Tags                 []MessageTag
}

SendEmailRequest has parameters for `SendEmail` operation.

func (SendEmailRequest) ToInput added in v0.3.0

func (r SendEmailRequest) ToInput() *SDK.SendEmailInput

type SendEmailResult added in v0.3.0

type SendEmailResult struct {
	MessageID string
}

func NewSendEmailResult added in v0.3.0

func NewSendEmailResult(o *SDK.SendEmailResponse) *SendEmailResult

type SendRawEmailRequest

type SendRawEmailRequest struct {
	RawMessageData []byte

	// optional
	ConfigurationSetName string
	Destinations         []string
	FromARN              string
	ReturnPathARN        string
	Source               string
	SourceARN            string
	Tags                 []MessageTag
}

SendRawEmailRequest has parameters for `SendRawEmail` operation.

func (SendRawEmailRequest) ToInput

type SendRawEmailResult

type SendRawEmailResult struct {
	MessageID string
}

func NewSendRawEmailResult

func NewSendRawEmailResult(o *SDK.SendRawEmailResponse) *SendRawEmailResult

type SendTemplatedEmailRequest added in v0.3.0

type SendTemplatedEmailRequest struct {
	Destination  Destination
	Source       string
	Template     string
	TemplateData string

	ConfigurationSetName string
	ReplyToAddresses     []string
	ReturnPath           string
	ReturnPathARN        string
	SourceARN            string
	Tags                 []MessageTag
	TemplateARN          string
}

SendTemplatedEmailRequest has parameters for `SendTemplatedEmail` operation.

func (SendTemplatedEmailRequest) ToInput added in v0.3.0

type SendTemplatedEmailResult added in v0.3.0

type SendTemplatedEmailResult struct {
	MessageID string
}

func NewSendTemplatedEmailResult added in v0.3.0

func NewSendTemplatedEmailResult(o *SDK.SendTemplatedEmailResponse) *SendTemplatedEmailResult

type XAttachment

type XAttachment struct {
	Data     []byte
	Filename string
	MIMEType string
	// if 'ContentTransferEncoding' is "base64", then 'Data' must be base64 encoded.
	ContentTransferEncoding string
}

type XBulkEmailDestination added in v0.3.0

type XBulkEmailDestination struct {
	To []string

	// optional
	Cc           []string
	Bcc          []string
	TemplateData map[string]interface{}
}

func (XBulkEmailDestination) ToRequest added in v0.3.0

type XSendBulkTemplatedEmailRequest added in v0.3.0

type XSendBulkTemplatedEmailRequest struct {
	Destinations []XBulkEmailDestination
	From         string
	Template     string

	// optional
	DefaultTemplateData map[string]interface{}
}

XSendBulkTemplatedEmailRequest has parameters for `XSendBulkTemplatedEmail` function.

func (XSendBulkTemplatedEmailRequest) ToRequest added in v0.3.0

ToRequest converts to SendBulkTemplatedEmailRequest.

type XSendRawEmailRequest

type XSendRawEmailRequest struct {
	From            string
	To              []string
	ReturnPath      string
	Subject         string
	TextBody        string
	TextCharset     string
	HTMLBody        string
	HTMLCharset     string
	ContentLanguage string
	MIMEVersion     string
	Attachments     []XAttachment

	// optional
	ConfigurationSetName string
	FromARN              string
	ReturnPathARN        string
	SourceARN            string
	Tags                 []MessageTag
}

XSendRawEmailRequest has parameters for `XSendRawEmail` function.

func (XSendRawEmailRequest) ToRequest

ToRequest converts to SendRawEmailRequest. most header codes are based on,

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL