Movatterモバイル変換


[0]ホーム

URL:


email

package
v1.5.1Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License:MITImports:9Imported by:0

Details

Repository

github.com/staticbackendhq/core

Links

Documentation

Index

Constants

View Source
const (MailProviderDev = "dev"MailProviderSES = "ses")

Variables

This section is empty.

Functions

funcStripHTML

func StripHTML(sstring)string

StripHTML returns a version of a string with no HTML tags.

Types

typeAWSSES

type AWSSES struct{}

func (AWSSES)Send

func (AWSSES) Send(dataSendMailData)error

typeDev

type Dev struct{}

func (Dev)Send

func (dDev) Send(dataSendMailData)error

typeMaileradded inv1.4.1

type Mailer interface {// Send sends the emailSend(SendMailData)error}

Mailer is used to have different implementation for sending email

typeSendMailDataadded inv1.4.1

type SendMailData struct {Fromstring `json:"from"`FromNamestring `json:"fromName"`Tostring `json:"to"`ToNamestring `json:"toName"`Subjectstring `json:"subject"`HTMLBodystring `json:"htmlBody"`TextBodystring `json:"textBody"`ReplyTostring `json:"replyTo"`Bodystring `json:"body"`}

SendMailData contains necessary fields to send an email

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp