Documentation ¶
Index ¶
- Constants
- type Config
- type DeliveryStatus
- type Email
- type Envelope
- type EventsResponse
- type Flags
- type Headers
- type Item
- type Mailgun
- func (m *Mailgun) CreateAddress(user string) string
- func (m *Mailgun) Forward(storageKey string, to string) error
- func (m *Mailgun) IsInMyDomain(address string) bool
- func (m *Mailgun) ListAllEvents(begin, end int64) ([]Item, error)
- func (m *Mailgun) ListDeliveredEvents(begin, end int64) ([]Item, error)
- func (m *Mailgun) ListFailedEvents(begin, end int64) ([]Item, error)
- func (m *Mailgun) ListRejectedEvents(begin, end int64) ([]Item, error)
- func (m *Mailgun) ListStoredEvents(begin, end int64) ([]Item, error)
- func (m *Mailgun) MailerDaemon() string
- func (m *Mailgun) SendBounceEmail(email Email, failedRecipient string) error
- func (m *Mailgun) SendEmail(email Email) error
- type Message
- type Paging
- type Storage
Constants ¶
View Source
const EventDelivered = "delivered"
View Source
const EventFailed = "failed"
View Source
const EventRejected = "rejected"
View Source
const EventStored = "stored"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeliveryStatus ¶
type EventsResponse ¶
type Item ¶
type Item struct { Storage Storage `json:"storage"` Severity string `json:"severity"` DeliveryStatus DeliveryStatus `json:"delivery-status"` RecipientDomain string `json:"recipient-domain"` Reason string `json:"reason"` Flags Flags `json:"flags"` Timestamp float64 `json:"timestamp"` Envelope Envelope `json:"envelope"` Message Message `json:"message"` Recipient string `json:"recipient"` Event string `json:"event"` }
type Mailgun ¶
type Mailgun struct {
// contains filtered or unexported fields
}
func (*Mailgun) CreateAddress ¶
func (*Mailgun) IsInMyDomain ¶
func (*Mailgun) ListDeliveredEvents ¶
func (*Mailgun) ListFailedEvents ¶
func (*Mailgun) ListRejectedEvents ¶
func (*Mailgun) ListStoredEvents ¶
func (*Mailgun) MailerDaemon ¶
func (*Mailgun) SendBounceEmail ¶
Sends bounce email. Email.From is ignored.
Click to show internal directories.
Click to hide internal directories.