View previous topic :: View next topic |
Author |
Message |
carbon Guru


Joined: 27 Jun 2003 Posts: 455 Location: New York
|
Posted: Thu Jan 15, 2004 9:59 pm Post subject: whats the easiest way to send text email to a specific addre |
|
|
I am trying to find out how to send a email with a single command in the prompt. I was reading how to setup a postfix mail server, but that seems to overkilling. Is there a simple program that allows me to do the folllowing thing?
programName [text message] [address to send to]
or am I looking for something doesnt exist yet. _________________ I do what I want, and that's what I do.
GNU World Domination
Carbon |
|
Back to top |
|
 |
adaptr Watchman


Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Thu Jan 15, 2004 10:34 pm Post subject: |
|
|
You can do this with the standard "mail" program included in the "mailx" package.
All you need for it is a mail sender - ssmtp is included in Gentoo by default.
Code: | mail -s "your subject goes here" recipient@isp.tld < text_file |
Couldn't be simpler, really.
Last edited by adaptr on Thu Jan 15, 2004 10:40 pm; edited 1 time in total |
|
Back to top |
|
 |
carbon Guru


Joined: 27 Jun 2003 Posts: 455 Location: New York
|
Posted: Thu Jan 15, 2004 10:38 pm Post subject: |
|
|
thanks, i will try that _________________ I do what I want, and that's what I do.
GNU World Domination
Carbon |
|
Back to top |
|
 |
adaptr Watchman


Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Thu Jan 15, 2004 10:41 pm Post subject: |
|
|
Note that I edited my post - didn't see that you had replied *already*
The mail program is in the mailx package:
|
|
Back to top |
|
 |
carbon Guru


Joined: 27 Jun 2003 Posts: 455 Location: New York
|
Posted: Sat Jan 17, 2004 11:41 pm Post subject: |
|
|
mail -s "ip changed" bobbyjones@hotmail.com < "ip"
send-mail: warning: My hostname localhost is not a fully qualified name - set myhostname or mydomain in /etc/postfix/main.cf
postdrop: warning: My hostname localhost is not a fully qualified name - set myhostname or mydomain in /etc/postfix/main.cf
what does mailx have to do with postfix? _________________ I do what I want, and that's what I do.
GNU World Domination
Carbon |
|
Back to top |
|
 |
|