mails

package
v1.16.63 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2026 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MailClient

type MailClient struct {
	FromMail string
	Service  MailServices

	SMTP *SMTPConfig
}

func NewKarmaMail

func NewKarmaMail(fromMail string, service MailServices) *MailClient

func (*MailClient) SendSingleMail

func (m *MailClient) SendSingleMail(email models.SingleEmailRequest) error

type MailServices

type MailServices string
const (
	AWS_SES  MailServices = "AWS_SES"
	SMTP     MailServices = "SMTP"
	MAILGUN  MailServices = "MAILGUN"
	SENDGRID MailServices = "SENDGRID"
)

type SMTPConfig added in v1.16.53

type SMTPConfig struct {
	Host     string // e.g. "smtp.gmail.com"
	Port     int    // e.g. 587
	Username string // SMTP username
	Password string // SMTP password / app password
	UseTLS   bool   // If true, do TLS immediately (SMTPS / typically 465)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL