Blat mail command
The infamous blat
command!
blat
is a command-line email client that allows you to send emails using the Simple Mail Transfer Protocol (SMTP). It's often used in scripts and automation tasks where a simple, lightweight email client is needed.
Here's a basic syntax for the blat
command:
blat [options] <from> <to> <subject> <message>
Here's a breakdown of the options:
-f
or--from
: specifies the sender's email address.-t
or--to
: specifies the recipient's email address.-s
or--subject
: specifies the subject line.-body
or--message
: specifies the email body.-attach
or--attachment
: specifies a file to attach to the email.-server
or--smtp-server
: specifies the SMTP server to use.-port
or--smtp-port
: specifies the SMTP port to use.
Here's an example usage:
blat -f "[email protected]" -t "[email protected]" -s "Hello" -body "Hello, Jane!"
This would send an email from [email protected]
to [email protected]
with the subject "Hello" and the body "Hello, Jane!".
Note that blat
is a command-line tool and doesn't have a graphical user interface. It's designed for automation and scripting tasks, so you'll need to use it in a terminal or command prompt.
Also, keep in mind that blat
is an old tool, and it may not support all the features and protocols that modern email clients do.