Documentation ¶
Index ¶
- func DialTLS(addr string, insecureSkipVerify bool) (*smtp.Client, error)
- func New(host, port, user, password, displayUser, isSSLStr, insecureSkipVerify string, ...) subscriber.Subscriber
- func SendMailUsingTLS(addr string, auth smtp.Auth, from string, tos []string, ...) (err error)
- type Attachment
- type MailData
- type MailSubscriber
- type MailSubscriberInfo
- type Message
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(host, port, user, password, displayUser, isSSLStr, insecureSkipVerify string, bundle *bundle.Bundle) subscriber.Subscriber
Types ¶
type Attachment ¶
type MailSubscriber ¶
type MailSubscriber struct {
// contains filtered or unexported fields
}
func (*MailSubscriber) IsSSL ¶
func (d *MailSubscriber) IsSSL() bool
func (*MailSubscriber) Name ¶
func (d *MailSubscriber) Name() string
func (*MailSubscriber) Status ¶
func (d *MailSubscriber) Status() interface{}
type MailSubscriberInfo ¶ added in v1.5.0
type MailSubscriberInfo struct { Host string Port string User string Password string DisplayUser string IsSSL bool InsecureSkipVerify bool }
func NewMailSubscriberInfo ¶ added in v1.5.0
func NewMailSubscriberInfo(host, port, user, password, displayUser, isSSLStr, insecureSkipVerify string) *MailSubscriberInfo
type Message ¶
type Message struct { From string FromDisplayName string To []string Cc []string Subject string Body string BodyContentType string Attachments []*Attachment }
func (*Message) Attach ¶
func (m *Message) Attach(attachment *Attachment)
type Option ¶
type Option func(*MailSubscriber)
Click to show internal directories.
Click to hide internal directories.