Messaging
cancel
Showing results for 
Search instead for 
Did you mean: 

Mailing in HPUX to large group

Sharmistha Ghosh
Occasional Visitor

Mailing in HPUX to large group

Hi,

My problem is i want to mail from unix with attachment to a large group of people.
The problem I am facing is whenver $mail_list is more that 80 chac it's failing.

I am using the following command

cat email_boody|uuencode $file $file|mailx -m -s $subject $maillist

$maillist contains addresses seperated by ; and the no of recepient is almost 50.

Kindly help.
3 REPLIES
Steven E. Protter
Exalted Contributor

Re: Mailing in HPUX to large group

Shalom,

Send them out one at a time. That way you won't blow server anti-spam limits.

subject="Maeyem oty?"
file=myfile
while read -r recipient
do
cat email_boody|uuencode $file $file|mailx -m -s $subject $recipient
done < list


Done.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Sharmistha Ghosh
Occasional Visitor

Re: Mailing in HPUX to large group

Well i am presently using that only. But since it is an automation process.
But list of people whoever i am mailing should be visible to others.

ANd the problem i am facinc in the limitation of the variable size in unix
Bill Hassell
Honored Contributor

Re: Mailing in HPUX to large group

A variable can be as long as 40 Megs, not 80 bytes (in POSIX or ksh). According to the man page for mailx, the address list must be less than 1024 characters. Again, according to the man page, you can create an alias of any length and simply use the alias name as your address. The aliases file is located in /etc/mail. Be sure to run newaliases after you edit this file.


Bill Hassell, sysadmin