smtp

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SMTPClient

type SMTPClient struct {
	// contains filtered or unexported fields
}

func NewSMTPClient

func NewSMTPClient(repos *repository.Repositories, mailbox *models.Mailbox) *SMTPClient

func (*SMTPClient) Send

func (s *SMTPClient) Send(ctx context.Context, email *models.Email, attachments []*models.EmailAttachment) *SendResult

type SendResult

type SendResult struct {
	Success      bool
	MessageID    string
	ErrorMessage string
}

Jump to

Keyboard shortcuts

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