3 Oct 2005 05:36
Re: RFE: specifying SMTP server by cmdline option
> It would be convenient to have a command line option, specifying SMTP > server (with optional user, password and port). For example: > nail -<OPT> [user[:password] <at> ]host[:port] recipient ..... > Dmitry Butskoy If you look through the man page (man nail), you will find the "account" statement; further down you will find details about setting up for SMTP and POP3. So in your nail.rc file, you need a section where you define an account. I can put this message together, editing with elvis or vim (open-source enhanced vi clones), including the headers, and naming this file nail1.out, I can send it with nail -A bluegrass -t < nail1.out bluegrass is my account defined in /etc/nail.rc, and I will be in the path where nail1.out is located, otherwise I could prepend nail1.out with the path to that file. You can even set up for authenticated SMTP if the server requires that. Tom ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl(Continue reading)

RSS Feed