> "SF" == Shlomi Fish writes:
SF> Don't slurp files this way:
SF> http://perl-begin.org/tutorials/bad-elements/#slurp
if you are going to show a slurp sub in your tutorial at least show a
good one. look at my slurp article in the File::Slurp distro for a
better and faster one. avoiding
, so it will apprears with "weird" characters.
>
>
> Does anyone has any working example or any suggestion please ?
>
Maybe look into the Encode module and maybe try
http://search.cpan.org/dist/Email-Sender/ instead of Mail-Sendmail.
Now a few comments on your code:
>
ple or any suggestion please ?
Best Regards,
My code is :
1. #!/usr/bin/perl
2.
3.
4. use strict;
5. use Mail::Sendmail;
6. use MIME::Base64;
7.
8. my $content = `cat tmp.txt`;
9.
10. print "Sending an email .";
11.
12. my %mail = (
13.
> From: Michael Goopta [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 07, 2007 12:13
> To: beginners@perl.org
> Subject: Where can I download the Perl Mail::Sendmail library module
>
> Hi Chas,
>
> Thanks a lot for your help. It did get me started. It had time
Hi Chas,
Thanks a lot for your help. It did get me started. It had time
module.
Now, when I started writing a simple sendmail routine, I find
that I do not have Mail/sendmail.pm file.
(It was not included in the download)
Can you please help me by telling me where I can download it
from.
I work o
>
> Hi all!
>
> I am using Mail::Sendmail module to send e-mails from my perl
application but the text of these messages seems to be too much long and
when receiving the e-mail the text of the message is not complete.
> Do yo know if there are any message size limitation? It
On Wed, 2004-06-09 at 10:59 +0200, Miguel Ãngel Morales wrote:
> Hi all!
>
> I am using Mail::Sendmail module to send e-mails from my perl application but the
> text of these messages seems to be too much long and when receiving the e-mail the
> text of the message is not complet
Hi all!
I am using Mail::Sendmail module to send e-mails from my perl application but the text
of these messages seems to be too much long and when receiving the e-mail the text of
the message is not complete.
Do yo know if there are any message size limitation? It this limitation exists, what
[EMAIL PROTECTED] wrote:
ok here it what I did and it is emailing sproadically. Also it is not
placing the array data into the email body???
## Set pragmas
use strict;
use Mail::Sendmail;
## Set and edit variables
my $foreigntapes="/usr/local/log/foreign_tape
ok here it what I did and it is emailing sproadically. Also it is not
placing the array data into the email body???
## Set pragmas
use strict;
use Mail::Sendmail;
## Set and edit variables
my $foreigntapes="/usr/local/log/foreign_tapes.log";
delete
[EMAIL PROTECTED] wrote:
> I was looking at the Mail::Sendmail module from CPAN and I did not
> find anything that showed printing a body. How do I print a body of
> text data from a variable?
I haven't used Mail::Sendmail, but it looks like the message body goes in
the Message ent
I was looking at the Mail::Sendmail module from CPAN and I did not find
anything that showed printing a body. How do I print a body of text data
from a variable?
The highlighted code is not working but I was playing with it to get this
message with the scaler $ftapes listed.
thank you
AM
To: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
cc:
Subject:RE: using Mail::Sendmail
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> wrote:
: All,
:
: I am getting these errors... any ideas?
:
: Global symbol "%mail" requires explic
l
>line.
>Bareword "EO_SIG" not allowed while "strict subs" in use at foreign_tape_ck.pl .
Generally perl reports the line number of the error. Did you paste these
correctly?
>Here is my code:
>## Set pragmas
>use strict;
>use Mail::Sendmail;
>## Set an
eign_tape_ck.pl . foreign_tape_ck.pl had compilation errors.
[snip]
: if ( -s OUT ) {
: my %mailman = ( From => 'EDM01 <[EMAIL PROTECTED]>',
: To => 'Derek Smith <[EMAIL PROTECTED]>',
: Subject => "Foreign Tapes Found" );
: sendmail (%mail) or
is my code:
## Set pragmas
use strict;
use Mail::Sendmail;
## Set and edit variables
my $foreigntapes="/usr/local/log/foreign_tapes.log";
delete $ENV{'IFS'};
local $ENV{'PATH'} = "/usr/epoch/bin:/usr/epoch/EB/bin:/usr/bin:/usr/sbi
n:/bin:/sbin";
#print $EN
My script uses Sendmail. And I was just wondering about the question that is
in todays topics, How to pack the mail module with your project.
Do all servers with perl 5 and above come with Mail::Sendmail? Should I put
Mail::Send in my programs library of odds n ends and use it instead?
I use Netscape, ActivePerl 5.8, NT.
> >
> > Thanks,
> > Steve Few
> > NC DENR
> > [EMAIL PROTECTED]
> >
> >
> > -- sendmail.pl -
> > #!/usr/bin/perl -w #Or Mail::Sendmail, which can be used
> like this: ;
pl below is sendmail.pl.
>
> Any suggestions? I use Netscape, ActivePerl 5.8, NT.
>
> Thanks,
> Steve Few
> NC DENR
> [EMAIL PROTECTED]
>
>
> ------ sendmail.pl -
> #!/usr/bin/perl -w
> #Or Mail::Sendmail, which can be used li
ivePerl 5.8, NT.
Thanks,
Steve Few
NC DENR
[EMAIL PROTECTED]
-- sendmail.pl -
#!/usr/bin/perl -w
#Or Mail::Sendmail, which can be used like this: ;
use Mail::Sendmail;
%mail = ( To => '[EMAIL PROTECTED]',
From man Mail::Sendmail
Look at http://alma.ch/perl/Mail-Sendmail-FAQ.htm for additional info
(CGI, examples of sending attachments,
HTML mail etc...)
Jerry
On Sunday, Dec 15, 2002, at 12:31 Europe/Brussels, Adam Stuckey wrote:
Hello everyone,
Does anyone know of a way to send
Hello everyone,
Does anyone know of a way to send attachments via the module Mail::Sendmail?
Thanks.
Adam Stuckey
Disclaimer
___
The information contained in this e-mail and any attachments are
confidential. If you are not the intended
>
>
> Always try to do things within perl. Using the backticks to
> system() the
> external cat command will work only if the cat command exists
> and is in the
> $PATH. Also, it is less efficient as it involves forking
> another process and
> execing another file.
>
> While this may not
Gary Stainburn said:
> On Tuesday 05 November 2002 5:37 pm, LRMK wrote:
>> there is a one problem
>> $mail{message}=; only reads the first line of the file
>> in the following block;
>>
>> $oldsep=$/; $/=undef; disable line seperation
>> open(FIN,"")||die "cannot open file: $!\n";
>> $mail{me
On Tuesday 05 November 2002 5:47 pm, Kipp, James wrote:
> > Hello everyone,
> >
> > I'm trying to use the Mail::Sendmail module in a script where I need a
> > independent mailer. The problem I'm having is including more
> > than one line
> > of text
sage -
> From: "Gary Stainburn" <[EMAIL PROTECTED]>
> To: "Scott, Joshua" <[EMAIL PROTECTED]>; "Beginners Perl"
> <[EMAIL PROTECTED]>
> Sent: Tuesday, November 05, 2002 11:15 PM
> Subject: Re: Mail::Sendmail Module
>
> > On
>
> Hello everyone,
>
> I'm trying to use the Mail::Sendmail module in a script where I need a
> independent mailer. The problem I'm having is including more
> than one line
> of text in the message body. I'm not really sure how to do this. The
> pac
file = ;
chomp @file;
$mail{message}=join("\n",@file);
- Original Message -
From: "Gary Stainburn" <[EMAIL PROTECTED]>
To: "Scott, Joshua" <[EMAIL PROTECTED]>; "Beginners Perl"
<[EMAIL PROTECTED]>
Sent: Tuesday, November 05, 2002
On Tuesday 05 Nov 2002 5:01 pm, Scott, Joshua wrote:
> Hello everyone,
>
> I'm trying to use the Mail::Sendmail module in a script where I need a
> independent mailer. The problem I'm having is including more than one line
> of text in the message body. I'm not re
AM
To: Scott, Joshua
Cc: [EMAIL PROTECTED]
Subject: Re: Mail::Sendmail Module
combine all the lines using \n characters and store it in the hash variable
- Original Message -
From: "Scott, Joshua" <[EMAIL PROTECTED]>
To: "Beginners Perl" <[EMAIL PROTECTED]>
S
> Well I'm just wondering if there is much difference between Sender and
> Sendmail:
>
I guess, the simplicity of sending mail attachments is laudable with
Mail::Sender, whereas you have to work out a bit more in Mail::Sendmail to
make attachments work!
The same reason beh
quot;
> )
> or die "$Mail::Sender::Error\n";
>
> # (where $Email was pre-set from a web-form submission and $message was
> a pre-set message in the variable)
>
> ***
Well I'm just wondering if there is much difference between Sender and
Sendmail:
use Mail:
I have a CGI program that use the Mail::Sendmail module. The
situation is that at the end of the script it send a email
notification with the Mail::Sendmail but because the
Mail::Sendmail check for the email address to see if its valid,
when the
user enter an invalid email address the
variables, but its the
only way it worked. Sorry, dont know any better ;(
I want to send this script via email using Mail::Sendmail. I know that my
host may already have this mod, but I want to learn how to use it for when I
host my site myself. How do I incorporate that module into this
subject=>$opts{s},
msg=>$msg}) ||
die "mailer failed:$Mail::Sender::Error\n";
}
__END__
On Friday 11 May 2001 4:00 pm, [EMAIL PROTECTED] wrote:
> All,
> I am looking for a way to send the output of a logfile using
> Mail::S
--- Paul <[EMAIL PROTECTED]> wrote:
> --- [EMAIL PROTECTED] wrote:
> > All, I am looking for a way to send the output of a logfile using
> > Mail::Sendmail. Is that possible? If so can some body give me a
> > high level syntax.
If the previous method isn'
--- [EMAIL PROTECTED] wrote:
> All, I am looking for a way to send the output of a logfile using
> Mail::Sendmail. Is that possible? If so can some body give me a high
> level syntax.
my $content;
open LOG, $log or die $!;
{ local $/ = undef;
$content = ;
}
close LOG;
$mail{Messag
All,
I am looking for a way to send the output of a logfile using
Mail::Sendmail. Is that possible? If so can some body give me a high level
syntax.
Thanks in advance,
Kailash
38 matches
Mail list logo