runner

package
v0.0.0-...-f534286 Latest Latest
Warning

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

Go to latest
Published: May 26, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GreenTXT  = "\033[92m"   // OK
	CyanTXT   = "\033[96m"   // INFO
	YellowTXT = "\033[1;32m" // Others
	RedTXT    = "\033[91m"   // ERROR
	EndTXT    = "\033[00m"   // Ending color
)

Variables

View Source
var (
	Sc      = bufio.NewScanner(os.Stdin)                           // OS STDIN SCANNER
	CurDate = time.Now().Format("Mon, 02 Jan 2006 15:04:05 -0700") // CURRENT DATE
)

Functions

func ResolveMX

func ResolveMX(rcptTo string) string

ResolveMX resolve automatically MX with domain

Types

type Opt

type Opt struct {
	OptSMTPServ     string // MX/SMTP flag
	SMTPServ        string // MX/SMTP server
	Port            string // PORT
	MailFrom        string // MAIL FROM
	RcptTo          string // RCPT TO
	HFrom           string // Header From
	HTo             string // Header To
	HSub            string // Subject
	Body            string // Body
	Content         string // Content
	Date            string // Date
	Attach          string // Attachment
	AttachEncoded   string // Content Attachment
	Ctype           string // Content-Type
	MessageID       string // Message-ID
	Xmailer         string // X-Mailer
	Charset         string // Encoding
	PromptContent   bool   // Write Content with prompt (Allow HTML)
	HTMLFile        string // Read HTML file as Body
	HTMLFileContent []byte // HTML file content
	TXTFile         string // Read txt file content
	TXTFileContent  []byte // Txt file content
	Bs64            bool   // Set base64 encoding
	Xprio           string // X-Priority
	Boundary        string // Custom Boundary
	Encoding        string // Change encode (7bit / 8bit / binary)
	Gmail           bool   // Allow auth (Gmail...)
	SaveEml         bool   // Save email to an EML file
	Silent          bool   // Silent mode - Do not disaply overview or info
}

Opt define all struct

Jump to

Keyboard shortcuts

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