email

package
v1.42.48 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2026 License: MIT Imports: 21 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const AffiliateWelcome = email.AffiliateWelcome
View Source
const OrderConfirmation = email.OrderConfirmation
View Source
const OrderRefund = email.OrderRefund
View Source
const OrderRefundPartial = email.OrderRefundPartial
View Source
const OrderShipped = email.OrderShipped
View Source
const OrderUpdated = email.OrderUpdated
View Source
const ReferralSignup = email.ReferralSignup
View Source
const SubscriberWelcome = email.SubscriberWelcome
View Source
const UserActivated = email.UserActivated
View Source
const UserConfirmEmail = email.UserConfirmEmail
View Source
const UserPasswordUpdated = email.UserPasswordUpdated
View Source
const UserResetPassword = email.UserResetPassword
View Source
const UserUpdated = email.UserUpdated
View Source
const UserWelcome = email.UserWelcome

Variables

View Source
var IntegrationShouldNotBeNilError = errors.New("No email providers have been set up.")
View Source
var NewMessage = email.NewMessage

Alias common types from "github.com/hanzoai/commerce/types/email"

View Source
var NewPersonalization = email.NewPersonalization

Functions

func Send

func Send(c context.Context, message *email.Message, org *organization.Organization) (err error)

Send email

func SendAffiliateWelcome

func SendAffiliateWelcome(c context.Context, org *organization.Organization, usr *user.User)

Send welcome email to user

func SendOrderConfirmation

func SendOrderConfirmation(c context.Context, org *organization.Organization, ord *order.Order, usr *user.User)

func SendOrderPartiallyRefunded

func SendOrderPartiallyRefunded(c context.Context, org *organization.Organization, ord *order.Order, usr *user.User, pay *payment.Payment)

func SendOrderRefunded

func SendOrderRefunded(c context.Context, org *organization.Organization, ord *order.Order, usr *user.User, pay *payment.Payment)

func SendOrderShipped

func SendOrderShipped(c context.Context, org *organization.Organization, ord *order.Order, usr *user.User, pay *payment.Payment)

func SendResetPassword

func SendResetPassword(c context.Context, org *organization.Organization, usr *user.User, tok *token.Token)

Send reset password email

func SendSubscriberWelcome

func SendSubscriberWelcome(c context.Context, org *organization.Organization, s *subscriber.Subscriber, f *form.Form)

Send welcome email to subscriber

func SendTemplate

func SendTemplate(templatePath string, c context.Context, message *email.Message, org *organization.Organization) (err error)

Send email using server-side template

func SendUpdatePassword

func SendUpdatePassword(c context.Context, org *organization.Organization, usr *user.User, tok *token.Token)

func SendUserActivated

func SendUserActivated(c context.Context, org *organization.Organization, usr *user.User)

Send email confirming email address is confirmed

func SendUserConfirmEmail

func SendUserConfirmEmail(c context.Context, org *organization.Organization, usr *user.User)

Send email asking for user to confirm email address

func SendUserWelcome

func SendUserWelcome(c context.Context, org *organization.Organization, usr *user.User)

Send welcome email to user

func Subscribe

func Subscribe(c context.Context, f *form.Form, s *subscriber.Subscriber, org *organization.Organization) (err error)

Types

type Email

type Email = email.Email

type List

type List = email.List

type Setting

type Setting = email.Setting

type Subscriber

type Subscriber = email.Subscriber

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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