package
Version:
v0.0.0-...-b1713d8
Opens a new window with list of versions in this module.
Published: Jan 15, 2019
License: BSD-3-Clause
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Support for self-signed certificate in SendMail function
-
func EmailsToString(mails []string) (s string)
-
func SendMail(addr string, a smtp.Auth, from string, to []string, hello string, msg []byte, ...) error
-
func TestSMTP(addr string, a smtp.Auth, hello string, timeout time.Duration, ...) error
-
type Command
-
type Return
Generate a comma separated list of e-mails from a array of e-mails
SendMail send a message to specific destination (to) using smtp server in addrs
and a auth.
TestSMTP tests if can connect with the server and send some commands.
Command object executes conn.SetDeadline before every function calls.
func (*Command) Exec ¶
func (c *Command) Exec(f interface{}, args ...interface{}) Return
Exec executes f with arguments args and return a function of type Return.
Return must be called with the pointer to the return values.
ExecTimeout executes f with arguments args and return a function of type Return.
Return must be called with the pointer to the return values.
type Return func(args ...interface{})
Source Files
¶
Click to show internal directories.
Click to hide internal directories.