View previous topic :: View next topic |
Author |
Message |
carbon Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Marvel/Marvel_-_Spiderman.gif)
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 |
|
![](templates/gentoo/images/spacer.gif) |
adaptr Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/17218567054377b9b6104ea.jpg)
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 |
|
![](templates/gentoo/images/spacer.gif) |
carbon Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Marvel/Marvel_-_Spiderman.gif)
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 |
|
![](templates/gentoo/images/spacer.gif) |
adaptr Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/17218567054377b9b6104ea.jpg)
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 |
|
![](templates/gentoo/images/spacer.gif) |
carbon Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Marvel/Marvel_-_Spiderman.gif)
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 |
|
![](templates/gentoo/images/spacer.gif) |
|