mimemail

package module
v0.0.0-...-81cfc65 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2014 License: BSD-2-Clause Imports: 3 Imported by: 4

README

mimemail

Not maintained anymore. Have a look at superior packages like gomail.

mimemail is a Go/golang library to construct simple plain text MIME messages.

Construct text/plain MIME messages for use with net/smtp. Base64 is used as transfer encoding and utf-8 as charset.

Documentation

Overview

Construct text/plain MIME messages for use with net/smtp. * * Base64 is used as transfer encoding and utf-8 as charset.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	Name  string
	Email string
}

A recipient or sender address.

func (Address) Format

func (a Address) Format() string

Format address for use in headers.

type Mail

type Mail struct {
	From    Address
	To      []Address
	Cc      []Address
	Bcc     []Address
	Subject string
	Body    []byte
}

func (Mail) Message

func (m Mail) Message() (msg []byte)

Get formatted MIME message (headers + body).

func (Mail) Recipients

func (m Mail) Recipients() (rcpts []string)

Get recipient addresses without names.

func (Mail) Sender

func (m Mail) Sender() string

Get sender address without name.

Jump to

Keyboard shortcuts

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