Hi - I'm doing some work with Apache James and have it running on my local development machine, which runs Ubuntu. To simplify testing, I'd like to be able to send an email to this local James server from a bash script.
I know I can telnet localhost 25 and send it that way, but telnet is difficult from a script. I've tried using msmtp and that gets the email into James, but JavaMail is unable to parse the data as a MimeMessage. I'd like to just find a simple command-line email utility that can send a well-formed email to my localhost server, without hitting dns or anything. Does anyone have any good suggestions for doing this? Thanks, Zach