Documentation ¶
Index ¶
- type Email
- type Interface
- type SMTP
- func (c *SMTP) GetClient() (*smtp.Client, error)
- func (c *SMTP) GetHost() string
- func (c *SMTP) GetPassword() string
- func (c *SMTP) GetPort() int
- func (c *SMTP) GetSenderAddress() string
- func (c *SMTP) ParseBody(body string, parameters map[string]interface{}) string
- func (c *SMTP) SendMail(email Email) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface { GetSenderAddress() string GetPassword() string GetHost() string GetPort() int ParseBody(body string, parameters map[string]interface{}) string SendMail(email Email) error }
Interface defines the methods that any SMTP client must implement.
type SMTP ¶
type SMTP struct {
// contains filtered or unexported fields
}
SMTP struct represents the SMTP client with necessary credentials and configurations.
func (*SMTP) GetPassword ¶
GetPassword returns the password for the SMTP client.
func (*SMTP) GetSenderAddress ¶
GetSenderAddress returns the sender's email address.
Click to show internal directories.
Click to hide internal directories.