Sending Mass mails


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Sending Mass mails
# 1  
Old 03-10-2006
Sending Mass mails

Hi Forum,

I am extremely new to unix.Can somebody please help me out with the following:

I am supposed to write a script that will ftp a file which is a .csv and conatins the following:
Mail-id Path of file
abc@xyz.com D:\xyz\abc.htm
ash@sde.com D:\xyz\ash.htm

a)I need to FTP this file to my local machine.
b)Then read through each line of the file to get the file location of individual files.
c)Then FTP those individually to local.
d)Then send these files eg abc.htm as an attachment to abc@xyz.com
and ash.htm to ash@sde.com

Can somebody Pleeease help me with this.....

Also wanted to know if sending mails from unix to others as in rediff.com or gmail.com..does this require a mail server like MS exchange server to be present on the local machine......

Please help....
Regards.....
# 2  
Old 03-10-2006
Quote:
I am supposed to write a script that will ftp a file which is a .csv and conatins the following:
Mail-id Path of file
abc@xyz.com D:\xyz\abc.htm
ash@sde.com D:\xyz\ash.htm

a)I need to FTP this file to my local machine.
b)Then read through each line of the file to get the file location of individual files.
c)Then FTP those individually to local.
d)Then send these files eg abc.htm as an attachment to abc@xyz.com
and ash.htm to ash@sde.com
You state it's a csv file - yet the information you show (contains the following) doesn't have commas separating the fields.

a) see Automate FTP / Scripting FTP transfers
b) see For loops within ftp commands - you will be combining the two scripts or calling (a) from (b).
c) This is taken into consideration in b).
d) see Sending mail attachments


Quote:
Also wanted to know if sending mails from unix to others as in rediff.com or gmail.com..does this require a mail server like MS exchange server to be present on the local machine.
Not exactly. Try sending mail from that server now - does it work? If it does, then nothing more is needed. If not, then post the OS and version and check to see if you have sendmail installed. Normally you don't need to have it running to send the email - it will start and attempt to send when you 'write' the email.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Sending Mails to the Multiple Email Address

Hi All, I am pretty new to the mail service in Sun Solaris 5.10. If anybody help me in writing a script for the multiple recipient with subject and the body would be a helpful. Kindly help... Thanks in advance. :) Warm Regards, Pramod (5 Replies)
Discussion started by: Pramod_009
5 Replies

2. Solaris

Crontab schedule sending two mails insted of one

Hi all, We have scheduled one cronjob which is supposed to show output through mails about 15 systems's current status (whether its up or down) but it send two mails one about 10 system which arrive at 5.30(actual scheduled time) and in second mail about 5 systems. We want all these... (1 Reply)
Discussion started by: manalisharmabe
1 Replies

3. Shell Programming and Scripting

cron not sending external mails

This script is to send a email if the IP adress is active when i run this script it is working and sending emails to external users in different domains, but when this script is scheduled in a cron it is unable to send the emails #/bin/sh ifconfig -a | grep 192.168.0.1 if ; then mail -s... (10 Replies)
Discussion started by: robo
10 Replies

4. UNIX for Dummies Questions & Answers

Sending mails to various users without hard coding the email IDS

Hi Can any one help me out ? I am trying to send an autogenerated mail with an attachment to bulk of users using 'MAILX' and 'UNENCODE' . I have used it as follows X " ( cat /sastemp/body.txt; uuencode Test.xls.gz Test.xls.gz ) | mailx -s 'Testing' ' abcd@yahoo.com , efgh@gmail.com ' " ... (9 Replies)
Discussion started by: manas6
9 Replies

5. Shell Programming and Scripting

error while sending mails through MKS

#!/bin/ksh email0="dummy@company.com" emails() { # mail Generation echo "Hi" | /mapimail -s "-(Test Mail)From Production- `date`" $email0; } emails i receive the following error IDispatch::new MSMAPI.MAPISession failed: 800401f3 at... (0 Replies)
Discussion started by: Vrgurav
0 Replies

6. SuSE

How to configure Suse Enterprise Linux 9.0 for sending mails to smtp server...???

Hi All, I have a system running with Suse Enterprise Linux 9.0. xyz# uname -a Linux xyz 2.4.21-291-smp #1 SMP Tue May 24 14:07:45 UTC 2005 i686 unknown I would like to configure postfix on this system for sending mails as a root user using "mail" command to smtp server (Windows System)... (5 Replies)
Discussion started by: jumadhiya
5 Replies

7. AIX

VI questions : mass changes, mass delete and external insert

Is it possible in VI to do a global change but take the search patterns and the replacement patterns from an external file ? I have cases where I can have 100,200 or 300+ global changes to do. All the new records are inside a file and I must VI a work file to change all of them. Also, can... (1 Reply)
Discussion started by: Browser_ice
1 Replies

8. IP Networking

Sending mails using plsql program

I am trying to send an email to personal id using plsql program. I have written a code in plsql using UTL_TCP package where opens the connections and then senda a mail. But when i execute the program mails are not being sent. I typed "mail" command on the unix box and got the below result... (5 Replies)
Discussion started by: amol_mudholkar
5 Replies

9. UNIX for Advanced & Expert Users

sending mails with attachment and also some text in mail body

Hi, Can some one help me with the syntax of the mailx that should send an attachment and also some text in the message body together. When I am using the following syntax it is not sending the attachment but only the message body. unix2dos -ascii $REPORTFILE | uuencode $PCFILE | mailx -s... (7 Replies)
Discussion started by: guptan
7 Replies
Login or Register to Ask a Question