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
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 works fine but instead of sending the text - "This is a
test", I would li
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',
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 works fine but instead of sending the text - "This is a
test", I would li
I just did this, have fun ^^
you must install Mail-sendmail module
#CODE STARTS HERE
#!d:\perl\bin\perl.exe -w
use strict;
use Mail::Sendmail;
my %mymail;
# use =cut =cut for /* */
my ($To, $subject, $body);
$subject = "subject goes here";
$To = "[EMAIL PROTECTED]";
$body = "Hello friend, \nThi
On Thu, 2002-05-23 at 05:18, Jackson, Harry wrote:
> I have tried the above code and got no joy whatsoever. I am getting the
> error
>
>
> Can't call method "mail" on an undefined value at H:\Perl\testing\mail.pl
> line 13.
>
>
> I have had a hunt around google and had little success. I have
> -Original Message-
> From: Felix Geerinckx [mailto:[EMAIL PROTECTED]]
#!/usr/bin/perl
use Net::SMTP;
use strict;
my $server = 'LONEXC0';
my $to = '[EMAIL PROTECTED]';
my $from_name = '[EMAIL PROTECTED]';
my $from_email = '[EMAIL PROTECTED]';
my $subject
on Thu, 23 May 2002 09:18:25 GMT, [EMAIL PROTECTED] (Harry
Jackson) wrote:
>> From: Michael Kelly [mailto:[EMAIL PROTECTED]]
>>
>>
>> #!/usr/bin/perl
>>
>> use Net::SMTP;
>>
>> $server = 'your-smtp-server';
>> $to = '[EMAIL PROTECTED]';
>> $from_name = 'You';
>> $from_email = '[
> -Original Message-
> From: Michael Kelly [mailto:[EMAIL PROTECTED]]
>
>
> #!/usr/bin/perl
>
> use Net::SMTP;
>
> $server = 'your-smtp-server';
> $to = '[EMAIL PROTECTED]';
> $from_name = 'You';
> $from_email = '[EMAIL PROTECTED]';
> $subject= 'hello, email';
>
> $
On 5/22/02 6:19 PM, Lance Prais <[EMAIL PROTECTED]> wrote:
> HOW CAN I SEND MAIL USING PERL ON NT? DOES ANYONE KNOW OF EXAMPLES THAT
> ARE OUT THERE ON THE WE?
YOU CAN USE THE Net::SMTP MODULE. IT WORKS QUITE WELL FOR THINGS LIKE THIS.
HERE IS A SNIPPET THAT MIGHT HELP. SEE THE DOCS ON THE Net
HOW CAN I SEND MAIL USING PERL ON NT? DOES ANYONE KNOW OF EXAMPLES THAT
ARE OUT THERE ON THE WE?
THANKS
LANCE
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
13 matches
Mail list logo