email

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package email provides a email client

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMailSender

func NewMailSender(cfg *configv1.Mail) mail.Sender

Types

type MailSender

type MailSender struct {
	*configv1.Mail
}

func (*MailSender) Send

func (s *MailSender) Send(ctx context.Context, to []string, cc []string, bcc []string, subject string, body string, file ...string) error

Send smtp client send email

func (*MailSender) SendTo

func (s *MailSender) SendTo(ctx context.Context, to []string, subject string, body string, file ...string) error

SendTo smtp client send email, use to specify recipients

Jump to

Keyboard shortcuts

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