Send mail with attachments automatically in a interval period


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Send mail with attachments automatically in a interval period
# 1  
Old 01-31-2004
Question Send mail with attachments automatically in a interval period

hai everyone

I want to send mail with attachments automatically

for every 15 minutes getting different E-mail IDs from a file

if any script is available , Please send to me ..

This will be very useful for my project....

Thanks for your time.....

Felix

email address removed

Last edited by Perderabo; 01-31-2004 at 10:06 AM..
# 2  
Old 01-31-2004
Felix,

Please don't take my response as rude, but you really should take the time to at least try working through your own script (especially one so simple). The purpose of the forums is not to "do the work for you", but to educate.

That being said, you could handle your time interval through the cron facility. As for sending email, As simple while loop could read the file:

#!/usr/bin/ksh

while read someemail
do
mail.....(insert code here)
done < /tmp/path/to/file

Cheers,

Keith
# 3  
Old 02-02-2004
Question

Dear all,

I am new to this Unix shell script,,

Previously I am in Application side handling quite a hand

of Projects and now out of my own INTEREST, I have come to

learn some SCRIPTS....where I can learn the core of a system.

So please, give some technical support regarding

To send mail with attachments for a period of intervals.
automatically reading the E-Mail IDs from a file.

thanks for your time,

with regards,

Felix
# 4  
Old 02-02-2004
please do a search.
how to send email automaticly has been answered a dozen times.

as far as reading the names from a file you can use a for loop.

please understand. we are not technical support. we are a collection of professionals and enthusests (sp).

if you are trying to learn about it. the best place to start is your local bookstore. you can check our faq on which books might be a good place to start.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to send mail at specific calculated time interval?

Hi All, I want to send an email if the time difference from previous mail sent is more than or equal to 30 mins. I have written below code and it's working fine. In this script I am storing previous mail sent time in txt file. Instead of storing in txt file how to store in a variable.... (8 Replies)
Discussion started by: nalu
8 Replies

2. Shell Programming and Scripting

Mail command --> send multiple attachments

Hi, i try to send two (multiple) files by the mail-console-command mail -s TEST -a f1.pdf f2.pdf n.ame@ms123.de but it doesn't work. can someone give me a hint? Thanks in advance, IMPe (2 Replies)
Discussion started by: IMPe
2 Replies

3. UNIX for Advanced & Expert Users

How to send mail with attachments in hpux server?

I am trying to send a mail alongwith attachments in hpux server. Its not throwing any error but it seems the command is still running,neither its sending the mail. The commands i am using is- uuencode 00PZ00000012OHJMA2.csv | mailx -s "Hello" abc@hp.com uuencode Shell_Script_Sample.ksh |... (1 Reply)
Discussion started by: saga20
1 Replies

4. Red Hat

How to send mail with multiple attachments?

We don't have uuencode installed in our machines..... Please tell me how to send mail with multiple attachments ??? URGENT !!!!! Please tell me using command line (or) scripts.......... please...... Thanks in Advance.... (1 Reply)
Discussion started by: vamshigvk475
1 Replies

5. Shell Programming and Scripting

How to automatically send a mail alert if the script errors out

I have a script like this, which calls other scripts from that script: #!/usr/ksh moveFiles.sh extract.sh readfile=/home/sample.txt cat $readfile | while read line do file= `echo $line|awk '{print $4}'` if ; then mv $file /home/temp_stage fi (4 Replies)
Discussion started by: ss3944
4 Replies

6. UNIX for Advanced & Expert Users

send attachments using send mail in Solaris

Hi All, I have a requirement to send and email of body html with an attachment. concatinating uuencode output to the mail body with mailx command works, but as my Email body is of HTML type i use sendmail. my command to send HTML body is as below: export MAILTO="recipient@domain.com"... (1 Reply)
Discussion started by: mohan_kumarcs
1 Replies

7. Shell Programming and Scripting

how to send mail automatically in unix

Dear friends, I am storing daily some data in a tape disk. and numbering it from 1 2 3 like this. I want to get alert mail automatically when ever data is greater than or equal to 600. to my yahoo mail. i want to put that mail script in crontab so it will check the data daily at... (7 Replies)
Discussion started by: rajan_ka1
7 Replies

8. AIX

Send mail attachments and have a mail body

Hi, How can I send mail attachments from shell script (AIX) and have a mail body as well ? Thanks in advance. (1 Reply)
Discussion started by: shibajighosh
1 Replies
Login or Register to Ask a Question