mail

package
v1.13.9 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const Binding = "goravel.mail"

Variables

This section is empty.

Functions

func LoginAuth

func LoginAuth(username, password string) smtp.Auth

func SendMail

func SendMail(config config.Config, subject, html string, fromAddress, fromName string, to, cc, bcc, attaches []string) error

Types

type Application

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

func NewApplication added in v1.8.0

func NewApplication(config config.Config, queue queuecontract.Queue) *Application

func (*Application) Attach added in v1.8.0

func (r *Application) Attach(files []string) mail.Mail

func (*Application) Bcc added in v1.8.0

func (r *Application) Bcc(bcc []string) mail.Mail

func (*Application) Cc added in v1.8.0

func (r *Application) Cc(cc []string) mail.Mail

func (*Application) Content added in v1.8.0

func (r *Application) Content(content mail.Content) mail.Mail

func (*Application) From added in v1.8.0

func (r *Application) From(from mail.From) mail.Mail

func (*Application) Queue added in v1.8.0

func (r *Application) Queue(queue *mail.Queue) error

func (*Application) Send added in v1.8.0

func (r *Application) Send() error

func (*Application) To added in v1.8.0

func (r *Application) To(to []string) mail.Mail

type SendMailJob

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

func NewSendMailJob added in v1.12.0

func NewSendMailJob(config config.Config) *SendMailJob

func (*SendMailJob) Handle

func (r *SendMailJob) Handle(args ...any) error

Handle Execute the job.

func (*SendMailJob) Signature

func (r *SendMailJob) Signature() string

Signature The name and signature of the job.

type ServiceProvider

type ServiceProvider struct {
}

func (*ServiceProvider) Boot

func (route *ServiceProvider) Boot(app foundation.Application)

func (*ServiceProvider) Register

func (route *ServiceProvider) Register(app foundation.Application)

Jump to

Keyboard shortcuts

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