Hi Zach, I'm using mutt as mail client and I use it for the purpose you describe, too. All you need is a ~/.muttrc file with the required stuff. Then this command
mutt -s "my subject" user@localhost < sometext.txt should work. You can also set a config file explicitely with "mutt -F my-other-muttrc ...". The following page gives a better overview: http://go2linux.garron.me/linux/2010/10/how-send-email-command-line-gmail-mutt-789 hth, Eike 2013/2/20 Zach Cox <zcox...@gmail.com>: > 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 --------------------------------------------------------------------- To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org