Results 1 to 7 of 7
Okay... so as you may have noticed from my previous messages... I'm pretty new at the whole BASH world and Linux world... but I like it and want to know ...
- 08-11-2008 #1Just Joined!
- Join Date
- Apr 2008
- Posts
- 18
Bash & Mail
Okay... so as you may have noticed from my previous messages... I'm pretty new at the whole BASH world and Linux world... but I like it and want to know more. Here's my newest question/objective.
How do I mail from Bash. For example...
I have a variable... $happyday
$happyday is influenced by factors and then periodically tested.
If $happyday comes back true, I want to send an email to myself via my POP3 Gmail account telling me that all is well.
How do I 1) configure Linux to use my POP3 account at this level and 2) write BASH code that will carry out this task?
Thanks!
Mark Smith
- 08-11-2008 #2Linux Newbie
- Join Date
- Jul 2008
- Posts
- 181
Since this is the programming forum, I will focus on your second question.
Code:mail -s "All is well" MarkTSmith78@gmail.com
- 08-11-2008 #3Just Joined!
- Join Date
- Apr 2008
- Posts
- 18
suseTestBox:/home/administrator/Desktop # mail -s "All is well" MarkTSmith78@gmail.com
It seems to be stalling out when I use this command... probably due to my other question of getting setup correctly for this usage? If so, what's the best forum for that?
Mark Smith
- 08-12-2008 #4Linux Newbie
- Join Date
- Jul 2008
- Posts
- 181
That would depend on your distribution and your choice of MUA and/or MTA.
- 08-12-2008 #5Linux User
- Join Date
- Jun 2007
- Posts
- 318
- 08-17-2008 #6Just Joined!
- Join Date
- Apr 2008
- Posts
- 18
- 08-18-2008 #7Linux Newbie
- Join Date
- Jul 2008
- Posts
- 181
MUA = Mail User Agent (e.g. MS Outlook), MTA = Mail Transfer Agent (e.g. Postfix).


Reply With Quote
