Sponsored Content
Top Forums Shell Programming and Scripting Sending mail from shell script Post 302650715 by prarat on Monday 4th of June 2012 06:17:42 AM
Old 06-04-2012
Thanks for the reply.
I think -a is for atachment,though I have tried,bu that is also not working.
Only issue i have is it is not giving me any error,but I am not getting the mail in my inbox,also I have checked whether SMTP is configured or not,and I think it is configured.
Anyone knows any other rason for this?

Thanks,
Pragyan
 

10 More Discussions You Might Find Interesting

1. HP-UX

sending mail from a script

Hi I want to send a mail (to my id like abc@xyz.com) from a shell script running on HP Ux. Would like to include text from a file or include the file as attachment, either ways. Thanks Sidhu (6 Replies)
Discussion started by: Amardeep
6 Replies

2. Shell Programming and Scripting

sending a mail using shell script

Please help me in writing the script for sending an attachment through email.(For example my text file name is :abc.txt and it is in directory d:/abc) (1 Reply)
Discussion started by: anitha126
1 Replies

3. Shell Programming and Scripting

Shell script for sending automatic email to personal mail id

hi guys, I need a shell script to send mail automatically to my personal mail id like xxxx@hotmail.com but while experimenting with "mail" command I faced following problems. cat text1.txt | mail -s 'test mail' xxxx@hotmail.com command successfully executed but while checking for... (4 Replies)
Discussion started by: rrd1986
4 Replies

4. Linux

Memory monitoring and sending alert mail to users in network using shell script

i m workiing on a shell script which may monitors network memory and send alert to user if it increase a threshold (1 Reply)
Discussion started by: navdeep5673
1 Replies

5. Shell Programming and Scripting

Reading a file and sending mail by shell scripting?

hi I need help urgently...i need to write a shell script which can solve the following problem....its urgent plz help me out coz m totally newbie in shell scripting.... the problem is: Suppose I have a folder called logs. whenever some error occurs some correspondence error file is generated. I... (4 Replies)
Discussion started by: sukhdip
4 Replies

6. Shell Programming and Scripting

Shell script for creating log file and sending mail?

Hi , I am trying to create shell script which will help me to compare file name in two folder. There is a multiple file store in 2 folder.I want to compare that with the name. If all the file are same then send a mail that "all date is same" if not then create one log file which contain... (4 Replies)
Discussion started by: san_dy123
4 Replies

7. Shell Programming and Scripting

shell script not sending mail

Hi, I have shell script which checks the filesystem check but does not send the mail. I might be missing something very simple.. could you please help? #!/bin/sh _servers="machine name" _out="/tmp/output.$$" _email="me@there.com" _sub="Disk Space Report $(date)" _mail=/usr/bin/mail... (5 Replies)
Discussion started by: Pandee
5 Replies

8. Shell Programming and Scripting

Sending Mail via shell script

I am in need of a script that will send out emails while going through a NAT. What I have that works is as follows: display_remote_IP | sort | uniq | while read i do FOUND=0 for IP in `echo $ACCEPTABLEIP` do if ; then FOUND=1... (2 Replies)
Discussion started by: ldapguy
2 Replies

9. Shell Programming and Scripting

Configuring smtp settings and then sending the mail through shell script

I have make an menu in which first option is to start and second is to stop the services echo "Please enter the appropriate choice for doing the operations" echo " 1) STOP Services 2) START Services case $choice in 1) ... (1 Reply)
Discussion started by: punpun66
1 Replies

10. Shell Programming and Scripting

A shell script for checking the last image and sending it in attachment to mail

Hello every one. I use mutt : "mpack -s "Test" /home/pi/Pictures/2018-10-05_23_10_40.jpg my_email_addres " to send me a particular picture with the name of the data+jpg in a pictures folder, but this folder I use it for a timelapse proyect with more pictures , and what I need is... (2 Replies)
Discussion started by: maxbcn
2 Replies
awayrc(5)							   User Manuals 							 awayrc(5)

NAME
awayrc - configuration file for Away DESCRIPTION
An away configuration file consists of a series of commands. Each line of the file may contain only one command. Command names are case- insensitive. Commands and arguments are separated by spaces. The hash mark, or pound sign ("#"), is used as a comment character. You can use it to annotate your configuration file. All text after the comment character to the end of the line is ignored. Take note that if any mailboxes are configured in the rc file, they will be the only mailboxes checked, which means that you must add your inbox--the $MAIL environment variable will be ignored. COMMANDS
mail VALUE This command allows the user to disable or enable the checking of the user's mailboxes. If mail checking is disabled, all mailbox and maildir commands are ignored. VALUE can be 0, 1, no, or yes. The default value is 'yes'. mailbox FILENAME A file that should be checked for "new mail." The filename will be appended to the previous maildir declaration. An optional description of the mailbox may be supplied. If the description contains a space, the entire description must be enclosed in braces, "{" and "}". maildir DIRECTORY A path where subsequent mailbox declarations will be located. The only argument is the path itself. persist VALUE This command will set whether to do persistent mail checking. VALUE can be 0, 1, no, or yes. The default value is 'yes'. time SECONDS This command will set the number of seconds that away sleeps before performing its background tasks. Presently, the only background task that away will perform is the checking of mailboxes. The SECONDS value must be more than the minimum, which set at compile time. The only argument is the number of seconds. The default value is 300. EXAMPLE
# check mailboxes mail yes # check mail every 60 seconds time 60 # do not do persistent checking persist no # inbox maildir /var/spool/mail mailbox johndoe {your Inbox} # procmail folders maildir /home/johndoe/mail mailbox linux-security {Linux Security} mailbox mutt-announce {Mutt Announce} FILES
~/.awayrc Per user configuration file. BUGS
Bug reports should be sent to the away mailing list <away@unbeatenpath.net>. SEE ALSO
away(1) AUTHORS
Cameron Moore <cameron@unbeatenpath.net>, and others. Linux November 2000 awayrc(5)
All times are GMT -4. The time now is 01:46 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy