gitea: code.gitea.io/gitea/modules/mailer Index | Files

package mailer

import "code.gitea.io/gitea/modules/mailer"

Index

Package Files

mailer.go

Variables

var Sender gomail.Sender

Sender sender for sending mail synchronously

func LoginAuth Uses

func LoginAuth(username, password string) smtp.Auth

LoginAuth SMTP AUTH LOGIN Auth Handler

func NewContext Uses

func NewContext()

NewContext start mail queue service

func SendAsync Uses

func SendAsync(msg *Message)

SendAsync send mail asynchronous

type Message Uses

type Message struct {
    Info string // Message information for log purpose.
    *gomail.Message
}

Message mail body and log info

func NewMessage Uses

func NewMessage(to []string, subject, body string) *Message

NewMessage creates new mail message object with default From header.

func NewMessageFrom Uses

func NewMessageFrom(to []string, fromDisplayName, fromAddress, subject, body string) *Message

NewMessageFrom creates new mail message object with custom From header.

Package mailer imports 15 packages (graph) and is imported by 11 packages. Updated 2019-06-24. Refresh now. Tools for package owners.