Documentation
¶
Index ¶
- Constants
- Variables
- func Send(c context.Context, message *email.Message, org *organization.Organization) (err error)
- func SendAffiliateWelcome(c context.Context, org *organization.Organization, usr *user.User)
- func SendOrderConfirmation(c context.Context, org *organization.Organization, ord *order.Order, ...)
- func SendOrderPartiallyRefunded(c context.Context, org *organization.Organization, ord *order.Order, ...)
- func SendOrderRefunded(c context.Context, org *organization.Organization, ord *order.Order, ...)
- func SendOrderShipped(c context.Context, org *organization.Organization, ord *order.Order, ...)
- func SendResetPassword(c context.Context, org *organization.Organization, usr *user.User, ...)
- func SendSubscriberWelcome(c context.Context, org *organization.Organization, s *subscriber.Subscriber, ...)
- func SendTemplate(templatePath string, c context.Context, message *email.Message, ...) (err error)
- func SendUpdatePassword(c context.Context, org *organization.Organization, usr *user.User, ...)
- func SendUserActivated(c context.Context, org *organization.Organization, usr *user.User)
- func SendUserConfirmEmail(c context.Context, org *organization.Organization, usr *user.User)
- func SendUserWelcome(c context.Context, org *organization.Organization, usr *user.User)
- func Subscribe(c context.Context, f *form.Form, s *subscriber.Subscriber, ...) (err error)
- type Email
- type List
- type Setting
- type Subscriber
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 Subscriber ¶
type Subscriber = email.Subscriber
Click to show internal directories.
Click to hide internal directories.