Documentation
¶
Index ¶
- type Authentication
- type Info
- type Mailer
- func (mailer *Mailer) Info() (*Info, error)
- func (mailer *Mailer) IsSecure() (bool, error)
- func (mailer *Mailer) SendMail(message Message, authentication *Authentication) error
- func (mailer *Mailer) SendMailRequest(request Request) error
- func (mailer *Mailer) SendSecureMail(user User, message Message, authentication *Authentication) error
- func (mailer *Mailer) SendSecureMailRequest(user User, request Request) error
- type Message
- type Request
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authentication ¶
type Mailer ¶
type Mailer struct {
Url string
}
func (*Mailer) SendMail ¶
func (mailer *Mailer) SendMail(message Message, authentication *Authentication) error
func (*Mailer) SendMailRequest ¶
func (*Mailer) SendSecureMail ¶
func (mailer *Mailer) SendSecureMail(user User, message Message, authentication *Authentication) error
type Message ¶
type Message struct {
From string `json:"from,omitempty"`
To string `json:"to" example:"me@gmail.com,you@gmail.com"`
Subject string `json:"subject"`
Body string `json:"body,omitempty"`
HtmlBody string `json:"html_body,omitempty" example:"Hello!"`
PlainBody string `json:"plain_body,omitempty" example:"<p>Hello!</p>"`
}
type Request ¶
type Request struct {
Message Message `json:"message"`
Authentication *Authentication `json:"authentication,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.