Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EmailClient ¶
type EmailClient struct { SenderEmail string SenderPW string ReceiverEmail string ServerHost string ServerPort int }
EmailClient contains email configuration data for SendEmail
func NewEmailClient ¶
func NewEmailClient(SenderEmail string, SenderPW string, ReceiverEmail string, ServerHost string, ServerPort int) *EmailClient
NewEmailClient create a new EmailClient
func (*EmailClient) SendEmail ¶
func (c *EmailClient) SendEmail(s string) error
SendEmail use EmailConfig to send string content
Click to show internal directories.
Click to hide internal directories.