gmail

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2019 License: MIT Imports: 4 Imported by: 0

README

gmail

Lightweight API for sending emails using the Google Gmail SMTP server.

Documentation

Overview

Package gmail provides a lightweight API to send emails using the google SMTP server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Login

type Login struct {
	// contains filtered or unexported fields
}

Type Login represents a set of gmail account credentials which can be used to log in and send email via SMTP.

func NewLogin

func NewLogin(sender, password string) *Login

NewLogin returns a pointer to a login struct containing the given email address and password.

func (*Login) Send

func (login *Login) Send(recipients []string, subject, body string) error

Send sends a plaintext email message to the given recipients.

Jump to

Keyboard shortcuts

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