Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 May 1996 15:14:26 +0200 (GMT)
From:      Robin Lunn <robin@is.co.za>
To:        admin@quebecweb.com
Cc:        questions@freebsd.org
Subject:   Re: Direct mail program
Message-ID:  <199605281314.PAA20508@admin.is.co.za>
In-Reply-To: <199605281200.IAA21879@quebecweb.com> from "admin@quebecweb.com" at May 28, 96 08:00:50 am

next in thread | previous in thread | raw e-mail | index | archive | help
admin@quebecweb.com wrote:
> I need a perl of sh routine that mail the file to a recipient.

/bin/cat file | /usr/bin/mail -s "Subject here" user@foobar.com

or if you have the message in a perl variable:

open(MAIL,"| /usr/bin/mail -s \"$subject\" $address") && print MAIL $message
&& close(MAIL);

or something like that...
-- 
_ __                  | Only my ideas here unless I say otherwise...
' )  )     /          | (BeamJack@IRC)                 
 /--' ____/___o  __   | "Nondum amabam, et amare amabam...  quaerebam
/  \_(_) /_) (__/) )_ |  quid amarem, amans amare." - St Augustine



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199605281314.PAA20508>