Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendTestEmail ¶
func SendTestEmail(config SMTPConfig, recipient string) bool
SendTestEmail sends a test email to the specified recipient using the given SMTP configuration. Logs the full process and returns true if successful, false otherwise.
func ValidateSMTPConfig ¶
func ValidateSMTPConfig(config SMTPConfig) error
Validate SMTPConfig connects to the SMTP server and authenticates using the provided credentials. Uses TLS for port 465 and STARTTLS for port 587.
Types ¶
Click to show internal directories.
Click to hide internal directories.