Categorygithub.com/gflydev/mail
modulepackage
1.0.2
Repository: https://github.com/gflydev/mail.git
Documentation: pkg.go.dev

# README

gFly Mail - Send mail

Copyright © 2023, gFly
https://www.gfly.dev
All rights reserved.

Usage

Install

go get -u github.com/gflydev/[email protected]

Quick usage main.go

import (
    "github.com/gflydev/mail"	
)

func main() {
    mail.Send(mail.Envelop{
        To:      []string{"[email protected]"},
        ReplyTo: []string{"[email protected]"},
        Subject: "Test mail from gflydev",
        Text:    "Test mail from gflydev",
        HTML:    "<h2>Test mail from gflydev</h2>",
    })
}

# Functions

New creates an Email, and returns the pointer to it.
NewEmailFromReader reads a stream of bytes from an io.Reader, r, and returns an email struct containing the parsed data.
No description provided by the author
No description provided by the author

# Constants

MaxLineLength is the maximum line length per RFC 2045.

# Variables

No description provided by the author
ErrMissingBoundary is returned when there is no boundary given for a multipart entity.
ErrMissingContentType is returned when there is no "Content-Type" header for a MIME entity.
No description provided by the author

# Structs

Attachment is a struct representing an email attachment.
Email is the type used for email messages.
No description provided by the author
No description provided by the author