With Blat not supporting supporting OAuth or direct SSL it's much less practical nowadays to use it to send mail. But since it's still a perfect tool to generate advanced mail messages, I propose to add a command line parameter like -simulate filename which would generate a message file instead of actually sending anything or requiring any command line parameters like -server.
Possible filename extensions will be EML (-simulate output.eml) and MBX (-simulate=output.mbx).
What do you think?
I actually use smtp4dev for testing my output before going live. This creates both a .txt file for the session, and .eml file of what it receives. I have two versions of this program -- v2.1.1.0 and v3.1. The earlier version is simpler to use and locate the output. The newer version supports SMTPUTF8, but it does not support creating files the way the older version does. The newer version stores the received emails to a SQLite database. This makes it less useful for my purposes than the older version.
I've been trying Papercut SMTP, which automatically saves every outgoing mail as an EML file and present those EML files inside a GUI, which has also has a raw message mode.
Still it could be nice not to need an extra program.
Last edit: lwc 2023-04-11
Eventually I've added a simulator to the Blat frontend LWBlat. It's actually an embedded version of LWSMTP-Server.
I used CMail to generate .eml files. It can send them too.
Though "CMail is not intended to be a better Blat" it should be mentioned it's not open source (just freeware) and has no DLL (i.e. library for other programs) version. Also, its very partial support for OAuth makes them recommend to use Gmail without it, i.e. not that different from Blat.
Also, its website mentions nothing about generating EML files, can you link to details how to do that?
Last edit: lwc 2023-05-24
E-mail can be written to file using the -file option and sent using -emailfile.
https://www.inveigle.net/cmail/usage#_mandatory_options_mode_selection