sendmail

package
v0.0.0-...-85a12fc Latest Latest
Warning

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

Go to latest
Published: May 21, 2018 License: LGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package sendmail allow user to send emails to a smpt server.

Index

Constants

View Source
const (
	MESSAGE_FORMAT = "From: %s\nTo: %s\nSubject: %s\n\n%s"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SMPT

type SMPT struct {
	Server string
	Port   int
}

type SendMail

type SendMail struct {
	From     string
	Password string
	Smpt     SMPT
}

func NewSendMail

func NewSendMail(_user, _password, _smpt_server string, _smtp_port int) *SendMail

NewSendMail

func (*SendMail) Addr

func (_obj *SendMail) Addr() string

SendMail

func (*SendMail) SendFromTo

func (_obj *SendMail) SendFromTo(_from string, _to []string, _subject, _message string) error

SendFromTo

func (*SendMail) SendTo

func (_obj *SendMail) SendTo(_to []string, _subject, _message string) error

SendTo

Jump to

Keyboard shortcuts

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