service

package
v0.0.0-...-e2b7729 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmailService

type EmailService interface {
	// SendMail func sends message with subject to some emails address.
	SendMail(subject, message string, emails ...string) error
}

func NewEmailService

func NewEmailService() EmailService

type EmailServiceImpl

type EmailServiceImpl struct {
	Server   string
	Port     int
	Email    string
	Password string
	SmptAuth smtp.Auth
	SmptMime string
	SmptAddr string
}

func (*EmailServiceImpl) SendMail

func (svc *EmailServiceImpl) SendMail(subject, message string, emails ...string) error

Jump to

Keyboard shortcuts

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