On Tue, 08 Mar 2005 18:00:52 -0500, Amy Kline wrote:
> Hi,
> How do I modify the following code to email a file (textfile.txt) to
> [EMAIL PROTECTED]
>
> open (MAIL, "|/usr/bin/mail [EMAIL PROTECTED]");
> print MAIL "Subject: test";
> print MAIL "This is a test";
> close MAIL;
>
> The above code
IIRC (no time to test right now) you simply change the disposition to
'inline' and attach a file like in the example below.
On Wed, Mar 09, 2005 at 07:29:14AM -0500, Amy Kline wrote:
> Peter, thanks for the sample code. Is there a way that I can display
> the text file as inline text instead of
Or use the "new" collection of Email::* modules for handling Mime stuff.
Email::Simple would do the job.
On Tue, 2005-03-08 at 19:53 -0500, Peter Rabbitson wrote:
> As stated earlier on the list I believe, I would not use an external program
> call. Instead use the MIME::Lite - clean and simple
As stated earlier on the list I believe, I would not use an external program
call. Instead use the MIME::Lite - clean and simple:
my $mail = MIME::Lite->new (From => $from_email,
To => $to_email,
Subject => 'Test',