Documentation ¶
Index ¶
- Variables
- type Email
- func (m *Email) AddAttachment(a interface{}) (err error)
- func (m *Email) AddContent(c interface{}) (err error)
- func (m *Email) AddRecipients(r interface{}) (err error)
- func (m *Email) AddSender(s interface{}) (err error)
- func (m *Email) AddSubject(s string) (err error)
- func (m *Email) AddTemplate(t interface{}) (err error)
- func (e *Email) GetInfo() map[string]interface{}
- func (m *Email) GetPlainEmail() (email interface{})
- func (m *Email) SetValues() (err error)
- type Mailgun
- func (p *Mailgun) GetName() (name string)
- func (p *Mailgun) Init() (err error)
- func (p *Mailgun) NewEmail(se interface{}, s string, c interface{}) (ms interface{}, err error)
- func (p *Mailgun) RefactorEmail(mail map[string]interface{}) (ms interface{}, err error)
- func (p *Mailgun) SendEmail(emailI interface{}) (err error)
- func (p *Mailgun) ToString() string
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Cfgfile = `provider.conf`
)
Functions ¶
This section is empty.
Types ¶
type Email ¶
type Email struct { PlainEmail models.Email `json:"plain_email,omitempty"` MailgunM *mailgun.Message `json:"mailgun_m,omitempty"` }
func (*Email) AddAttachment ¶
func (*Email) AddContent ¶
func (*Email) AddRecipients ¶
func (*Email) AddSubject ¶
func (*Email) AddTemplate ¶
func (*Email) GetPlainEmail ¶
func (m *Email) GetPlainEmail() (email interface{})
type Mailgun ¶
type Mailgun struct { ID int64 `json:"id,omitempty"` Name string `json:"name,omitempty"` Domain string `json:"domain,omitempty"` APIKey string `json:"api_key,omitempty"` PublicAPIKey string `json:"public_api_key,omitempty"` CounterM int64 `json:"counter_m,omitempty"` }
func NewProvider ¶
func (*Mailgun) RefactorEmail ¶
Click to show internal directories.
Click to hide internal directories.