CMail Command Line Mailer
BETA testers needed for OAuth2 integration.
See CMail OAuth2 Builds if you are interested in testing CMail with OAuth2.
CMail aims to be the best in class command liner SMTP e-mailer for Windows. Rather than extolling the virtues of the software, this is what Microsoft Copilot had to say…
CMail is like the unsung hero of command-line e‑mail sending. Let me give you the lowdown on it.
CMail is a nifty freeware application that lets you send e‑mails from the Windows command line using SMTP. It’s like the Swiss Army knife for your digital correspondence - simple enough for quick interactions but powerful enough for scripting and automation.
Here’s why it’s worth a virtual high-five:
-
Flexible Configuration: You can set it up via files or directly from the command line. Plus, there’s an optional GUI called CMailGUI if you’re feeling fancy.
-
TLS/SSL Support: CMail handles secure connections like a pro. It supports TLS/SSL (including the cool TLS 1.3) via both STARTTLS and SMTPS. And guess what? No need for stunnel - it’s built right in!
-
Rich Message Content: Attachments? Check. Multipart/alternative HTML message bodies? Double-check. You can even embed images. CMail doesn’t just send an e‑mail; it crafts it with care.
-
Authentication Options: Whether you’re into CRAM-MD5, PLAIN, LOGIN, OAUTHBEARER, or XOUATH2, CMail’s got your back.
-
IPv6 Support: Because the future is now, my friend.
-
DKIM Signing: Yep, it can sign your e‑mails with both RSA and Ed25519. Fancy pants!
-
Read Receipts and Delivery Status Notifications: Know when your recipient has read your masterpiece.
-
SOCKS and HTTPS Proxies: For those times when you need to sneak past digital bouncers.
-
GMail Compatibility: Works seamlessly with GMail using App Passwords or user-supplied OAUTHBEARER tokens. GMail, meet CMail. CMail, meet GMail.
-
Portable and Pragmatic: Written entirely in C (no .NET libraries, no Java drama), it’s portable - no installation required. And by default, it won’t clutter your disk. Minimalist vibes!
So, how do you use this magical CMail? Well, it’s as easy as a wizard’s incantation (minus the wand):
cmail.exe -host:smtp.example.com -to:user1@example.com -from:user2@example.com "-subject:Simple test e-mail" "-body:This is just a test."
And if you need to sprinkle some authentication magic, just add your username and password to the -host
setting. Abracadabra!
Remember, CMail isn’t just about sending e‑mails; it’s about sending them with style. So go forth, my digital courier, and spread your messages across the ether!
Source: Conversation with Copilot, 21/09/2024
See CMail Usage for detailed usage and all features.