Skip to content

Gmailer CLI Documentation

Usage

gmailercli [/t] [/f] [/s] [/m] [/h] [optional | /?]

Required
/t Recipient(s) of the mail message. Separate multiple addresses with a semi-colon (;).
/f Sender address of the mail message.
/s Subject of the mail message.
/m The body of the mail message.
/h SMTP server and port. Port defaults to 25 if not provided.
Optional
/? Displays help message.
/a Attachment(s) of the mail message. Separate multiple attachments with a semi-colon (;).
/useru User name of user for sending mail on SMTP server.
/userp Password of user for sending mail on SMTP server.
/tls Use TLS/SSL encryption.
/html Message body is formatted as HTML.

Examples

gmailercli /t:jdoe@company.com /f:jsmith@company.com /s:"TPS Report" /m:"Message body here." /a:"Report.doc" /h:smtp.company.com
gmailercli /t:jdoe@gmail.com /f:jsmith@gmail.com /s:"Annual Ski Trip" /m:"<p>Message body here.</p>" /h:smtp.gmail.com:587 /tls /usern:jsmith@gmail.com /userp:"MyPassword"