ses

package
v0.0.0-...-1a19813 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2015 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NotificationType_Complaint = "Complaint"
	NotificationType_Bounce    = "Bounce"

	BounceType_Undetermined    = "Undetermined"
	SubBounceType_Undetermined = "Undetermined"
	// Permanent Bounces
	BounceType_Permanent     = "Permanent"
	SubBounceType_General    = "General"
	SubBounceType_NoEmail    = "NoEmail"
	SubBounceType_Suppressed = "Suppressed"
	// Transient Bounces
	BounceType_Transient = "Transient"
	// also valid for transient : SubBounceType_General = "General"
	SubBounceType_MailboxFull        = "MailboxFull"
	SubBounceType_MessageTooLarge    = "MessageTooLarge"
	SubBounceType_ContentRejected    = "ContentRejected"
	SubBounceType_AttachmentRejected = "AttachmentRejected"

	// Complaint types
	ComplaintType_Abuse       = "abuse"
	ComplaintType_AuthFailure = "auth-failure"
	ComplaintType_Fraud       = "fraud"
	ComplaintType_NotSpam     = "not-spam"
	ComplaintType_Other       = "other"
	ComplaintType_Virus       = "virus"
)

see http://docs.aws.amazon.com/ses/latest/DeveloperGuide/notification-contents.html#bounce-types

Variables

This section is empty.

Functions

This section is empty.

Types

type BouncedRecipient

type BouncedRecipient struct {
	Status         string `json:"status"`
	Action         string `json:"action"`
	DiagnosticCode string `json:"diagnosticCode"`
	EmailAddress   string `json:"emailAddress"`
}

type ComplainedRecipient

type ComplainedRecipient struct {
	EmailAddress string `json:"emailAddress"`
}

type EmailAddresses

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

type Message

type Message struct {
	Body    MessageBody
	Subject MessageContent
}

type MessageBody

type MessageBody struct {
	Html MessageContent
	Text MessageContent
}

type MessageContent

type MessageContent struct {
	Charset string
	Data    string
}

type SendEmailRequest

type SendEmailRequest struct {
	awsgo.RequestBuilder

	Destination EmailAddresses
	Message     Message
	ReturnPath  string
	Source      string
}

func NewSendEmailRequest

func NewSendEmailRequest() *SendEmailRequest

func (SendEmailRequest) DeMarshalResponse

func (gir SendEmailRequest) DeMarshalResponse(response []byte, headers map[string]string, statusCode int) interface{}

func (SendEmailRequest) Request

func (gir SendEmailRequest) Request() (*SendEmailResponse, error)

func (*SendEmailRequest) VerifyInput

func (gir *SendEmailRequest) VerifyInput() error

type SendEmailResponse

type SendEmailResponse struct {
	SendEmailResult  SendEmailResult
	ResponseMetadata awsgo.ResponseMetaData
}

type SendEmailResult

type SendEmailResult struct {
	MessageId string
}

type SesBounce

type SesBounce struct {
	BounceSubType     string             `json:"bounceSubType"`
	BounceType        string             `json:"bounceType"`
	ReportingMTA      string             `json:"reportingMTA"`
	BouncedRecipients []BouncedRecipient `json:"bouncedRecipients"`
	Timestamp         string             `JSON:"timestamp"`
	FeedbackId        string             `JSON:"feedbackId"`
}

type SesComplaint

type SesComplaint struct {
	UserAgent             string                `json:"userAgent"`
	ComplaintFeedbackType string                `json:"complaintFeedbackType"`
	ComplainedRecipients  []ComplainedRecipient `json:"complainedRecipients"`
	Timestamp             string                `JSON:"timestamp"`
	FeedbackId            string                `JSON:"feedbackId"`
}

type SesFeedbackNotification

type SesFeedbackNotification struct {
	NotificationType string        `json:"notificationType"`
	Bounce           *SesBounce    `json:"bounce,omitempty"`
	Mail             *SesMail      `json:"mail,omitempty"`
	Complaint        *SesComplaint `json:"complaint,omitempty"`
}

Ses notifications as defined: http://docs.aws.amazon.com/ses/latest/DeveloperGuide/notification-examples.html You can get these sent to you via SNS.

type SesMail

type SesMail struct {
	Timestamp   string   `json:"timestamp"`
	Source      string   `json:"source"`
	MessageId   string   `json:"messageId"`
	Destination []string `json:"destination"`
}

Jump to

Keyboard shortcuts

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