MCPcopy Create free account
hub / github.com/KeepSec-Technologies/Mail2Go / Usage

Function Usage

usage.go:8–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6)
7
8func Usage() {
9 fmt.Fprintf(os.Stderr, "Usage: %s [options]\n", os.Args[0])
10 fmt.Fprintln(os.Stderr, "")
11 fmt.Fprintln(os.Stderr, " -s, --smtp-server SMTP server for sending emails")
12 fmt.Fprintln(os.Stderr, " -p, --smtp-port SMTP server port (Default: 587)")
13 fmt.Fprintln(os.Stderr, " -u, --smtp-username Username for SMTP authentication")
14 fmt.Fprintln(os.Stderr, " -w, --smtp-password Password for SMTP authentication")
15 fmt.Fprintln(os.Stderr, " -na, --no-auth No authentication required")
16 fmt.Fprintln(os.Stderr, " -l, --tls-mode TLS mode (none, tls-skip, tls)")
17 fmt.Fprintln(os.Stderr, " -f, --from-email Email address to send from")
18 fmt.Fprintln(os.Stderr, "")
19 fmt.Fprintln(os.Stderr, " -c, --config Path to the SMTP json config file which replaces the above arguments")
20 fmt.Fprintln(os.Stderr, "")
21 fmt.Fprintln(os.Stderr, " -t, --to-email Email addresses that will receive the email, comma-separated")
22 fmt.Fprintln(os.Stderr, " -r, --reply-to Email address to reply to (optional)")
23 fmt.Fprintln(os.Stderr, " -h, --subject Subject of the email")
24 fmt.Fprintln(os.Stderr, " -b, --body Body of the email")
25 fmt.Fprintln(os.Stderr, " -af, --attachments File paths for attachments, comma-separated (optional)")
26 fmt.Fprintln(os.Stderr, " -bf, --body-file File path for HTML email body (replaces the --body argument)")
27 fmt.Fprintln(os.Stderr, " -v, --version Application version")
28 fmt.Fprintln(os.Stderr, "")
29 fmt.Fprintln(os.Stderr, " Ensure all required flags are provided.")
30 os.Exit(1)
31}

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected