how to send autometic mail usins Linux shell script
You have already been told - just use the mail command to do what you want to do, nested in the logic you want it done for.
For instance, the following will check to see if a file exists every 3 minutes. If the file exists, it will e-mail the contents of the file to mail_ID@somedomain.com and then move the file to another location (so that the same file is not sent again).
while  do if [ -f /path/to/file ] then cat /path/to/file | mail -s "This is subject" mail_ID@somedomain.com mv /path/to/file /path/to/somewhere/else fi sleep 180 done
You will need to have an e-mail server installed on the machine. Otherwise, there is a perl script out there called "sendemail.pl" that you can probably google - this script will allow you to bounce the email off a relay server - an actual SMTP server such as exchange.
... Just now realizing how old the original request is - too much typing to turn back now.
you can use the mutt command
mutt -s "Test mail" -a /tmp/shahzeb.tar.gz email@example.com < /tmp/mailmessage.txt
Hi. so this is actually a continuation from another question of mineHere but i was advised to start a new thread as the original question was already answered.
This is the result of previous question answered :
code for the listbox - datagridview interaction
At the top of the code ...
Hi. I have a form with list box : lst_product, datagridview : grd_order and button: btn_addline. lst_product has a list of product ids selected from database (MS Acess 2013) , grd_order is by default empty except for 2 headers and btn_addline adds rows to grd_order.
Private Sub btn_addline_Click(ByVal ...
OK, so HostGator for some reason no longer allows gcc/g++ access unless you have a Designated Server account, which is a lot of money to spend just to compile my "Hello World" program. Thus I figured I'd compile at home, then upload. Program is your regular old bare-bones Hello World ...