Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SmtpExpressURL string = "https://api.smtpexpress.com"
Functions ¶
func MustParseURL ¶
Types ¶
type APIClient ¶
type APIClient struct { Send *SendService // contains filtered or unexported fields }
func CreateClient ¶
type MailRecipient ¶
type MailRecipient = MailSender
type MailSender ¶
type MailTemplate ¶
type SendMailOptions ¶
type SendMailOptions struct { Subject string `json:"subject,omitempty"` Message string `json:"message,omitempty"` Sender MailSender `json:"sender,omitempty"` Recipients []MailRecipient `json:"recipients,omitempty"` }
type SendMailResponse ¶
type SendMailWithTemplateOptions ¶
type SendMailWithTemplateOptions struct { Subject string `json:"subject,omitempty"` Template MailTemplate `json:"template,omitempty"` Sender MailSender `json:"sender,omitempty"` Recipients []MailRecipient `json:"recipients,omitempty"` }
type SendService ¶
type SendService service
func (*SendService) SendMail ¶
func (s *SendService) SendMail(ctx context.Context, options SendMailOptions) (SendMailResponse, error)
func (*SendService) SendMailWithTemplate ¶
func (s *SendService) SendMailWithTemplate(ctx context.Context, options SendMailWithTemplateOptions) (SendMailResponse, error)
Click to show internal directories.
Click to hide internal directories.