From owner-freebsd-questions Sun Nov 4 21: 1:42 2001 Delivered-To: freebsd-questions@freebsd.org Received: from post.mail.nl.demon.net (post-11.mail.nl.demon.net [194.159.73.21]) by hub.freebsd.org (Postfix) with ESMTP id 8AB2037B419 for ; Sun, 4 Nov 2001 21:01:35 -0800 (PST) Received: from [212.238.77.116] (helo=buffy.raggedclown.net) by post.mail.nl.demon.net with esmtp (Exim 3.33 #1) id 160bt8-00043N-00 for freebsd-questions@freebsd.org; Mon, 05 Nov 2001 05:01:34 +0000 Received: by tanya.raggedclown.net (Ragged Clown Mailhost, from userid 500) id D524011EF; Mon, 5 Nov 2001 05:37:46 +0100 (CET) Date: Mon, 5 Nov 2001 05:37:46 +0100 From: Cliff Sarginson To: freebsd-questions@freebsd.org Subject: Re: Mailx questions Message-ID: <20011105053746.C1507@raggedclown.net> References: <3BE5DF9D.5FD14996@apis.dhl.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.16i In-Reply-To: <3BE5DF9D.5FD14996@apis.dhl.com>; from llchan@apis.dhl.com on Mon, Nov 05, 2001 at 08:38:53AM +0800 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Nov 05, 2001 at 08:38:53AM +0800, Chan Ling Ling wrote: > Hi, > > I am writing a script to invoke mailx commands to send a season greeting > to a specific person (such as birthday message) , at the same time > Carbon Copy (cc) to a group of receipent. > > Can anyone kindly advise how can I send cc to a group of alias ? The > initial command is as followed. > > $ cat message | mailx -s "Birthday Greeting !!" person > Create an alias in /etc/aliases with the list of people you want to CC, eg: birthday: dylan,lopez,gwbush,mrsmills Then run "newaliases" Then simply cat message | mailx -s "Happy Birthday" -c birthday person They will receive the message, in the CC line of the header they will just see cc: Birthday -- Regards Cliff To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message