Send attachment via command line in Linux

You can do that using mpack