CMail - Command Line Mailer for Windows

Submit command line tools that you find here.
Post Reply
User avatar
Posts: 398
Joined: Sat Apr 19, 2014 12:52 am

CMail - Command Line Mailer for Windows

#1 Post by lintalist »

CMail 0.8.2 (LibreSSL 3.1.3) - 17 July 2020

Download: (amd64 and x86 (SSL and NoSSL) versions)
TPFC Database entry:

CMail is a freeware command line e-mail sending tool for Windows, primarily intended for sending scripted e-mail, but it is simple enough to be used interactively. If you are looking for an alternative to Blat with SSL support (stunnel not required), or more control over message formatting, CMail may be a good choice.

CMail is not intended to be a better Blat, it was developed to assist with testing mail server and content analysis software, and as such has evolved with a completely different feature set. While being very easy to use in its basic form, CMail provides advanced options for those who require them, allowing users to specify such things as the encoding mechanism for the message body and individual attachments, the types of authentication mechanisms to use, aliases for all recipients (similar software often doesn't support aliases, or can only send to a single user), and per-recipient Delivery Status Notification settings. Users can also control various aspects of the SMTP session, including enforcing the use of SSL/TLS where security is a consideration, setting the HELO/EHLO, adding custom headers, and mandating the use of IPv4 or IPv6.

  • IPv6 support.
  • TLS/SSL via STARTTLS or SMTPS (SSL-enabled version). Built-in, stunnel not required.
  • Support for adding multipart/alternative HTML message bodies (UTF-8) and embedded images.
  • Delivery Status Notification and Message Disposition Notification (Read receipt) support.
  • SMTP authentication using CRAM-MD5, PLAIN, and LOGIN.
  • Message bodies using plain text, base64, or quoted printable encoding.
  • Unlimited attachments using base64, quoted printable or uuencoding.
  • Wildcard attachment support to attach directory content.
  • Unlimited To/Cc/Bcc recipients, with aliases and DSN options for each if desired.
  • Read message body from command line, stdin or file.
  • Sending via SOCKS or HTTPS proxies.
  • Flexible configuration via files or the command line.
  • Written entirely in C - no need for .NET libraries, Java, or other prerequisites.
  • No installation required. Download, extract, use.
  • Free for private and commercial use.
CMail is provided as-is, free of charge. It may be used for both personal or commercial purposes, and be distributed without restriction, provided the software remains unmodified. Please ensure any acknowlegements in ThirdParty.txt (SSL-enabled version only at present) are preserved.

Posts: 1
Joined: Sun Jul 11, 2021 9:39 am

Re: CMail - Command Line Mailer for Windows

#2 Post by robertgsoliz »

Not only is email very useful for communication between friends and families and sending messages with attachments such as reports, photos, documents, presentations, video clips, and music files, it’s also useful for notification purposes. For example, a website monitoring service such as Pingdom has alerts where you’ll be notified through different methods such as email, SMS, Twitter or in-app when your server is down. Third-party backup software also normally has at least an email notification feature where you can set it up to automatically email you when the backup process has completed or failed.

If you are writing a batch file and want to send an automated email when the batch has completed running or if you’re faced with a third party software that does not even support email notification, then the simple solution is to use a command-line email sending tool for Windows. Here we have 7 ways to look at.

An example command line for sending an email using Gmail is given for every utility mentioned below. You’ll need to change the following information in the command line option: = Replace it with your full Gmail address = Replace it with the email address that will receive the message
YourGmailPassword = Replace it with your Gmail password
subject = The subject of the email. Make sure it is enclosed with double quotes if there are spaces. For example, “This is a long subject“
body = The message of the email. Should also enclose with double quotes if there are spaces
Read More: ... ification/

Posts: 3
Joined: Sun Dec 27, 2020 10:14 pm

Re: CMail - Command Line Mailer for Windows

#3 Post by SirHumphreyAppleby »

As the old CLI database is now defunct, I have created a new database entry for CMail and CMailGUI.

Post Reply