email

package
v0.0.0-...-736cfa7 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Host     string
	Port     string
	Username string
	Password string
	From     string
}

Config holds the SMTP configuration

type Service

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

Service handles email operations

func NewService

func NewService(config Config) *Service

NewService creates a new email service

func (*Service) SendOTP

func (s *Service) SendOTP(to, otp string) error

SendOTP sends an OTP to the specified email address

Jump to

Keyboard shortcuts

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