Re: Perl Mail::Sendmail encoding problem

2011-01-18 Thread Uri Guttman
> "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

Re: Perl Mail::Sendmail encoding problem

2011-01-18 Thread Shlomi Fish
, 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: >

Perl Mail::Sendmail encoding problem

2011-01-17 Thread sync
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.

RE: Where can I download the Perl Mail::Sendmail library module

2007-03-07 Thread Wagner, David --- Senior Programmer Analyst --- WGO
> 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

Where can I download the Perl Mail::Sendmail library module

2007-03-07 Thread Michael Goopta
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

Re: Mail::Sendmail

2004-06-09 Thread Wiggins d Anconia
> > 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

Re: Mail::Sendmail

2004-06-09 Thread mike
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

Mail::Sendmail

2004-06-09 Thread Miguel Ángel Morales
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

Re: using Mail::Sendmail

2004-06-04 Thread Roberto Etcheverry
[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

RE: using Mail::Sendmail

2004-06-03 Thread DBSMITH
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

RE: using Mail::Sendmail

2004-06-03 Thread Bob Showalter
[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

RE: using Mail::Sendmail

2004-06-03 Thread DBSMITH
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

RE: using Mail::Sendmail

2004-06-02 Thread DBSMITH
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

Re: using Mail::Sendmail

2004-06-02 Thread Peter Scott
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

RE: using Mail::Sendmail

2004-06-02 Thread Charles K. Clarkson
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

using Mail::Sendmail

2004-06-02 Thread DBSMITH
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

Mail::Send or Mail::Sendmail question

2003-06-14 Thread Motherofperls
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?

RE: Mail::sendmail

2003-02-28 Thread Dan Muey
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: ;

RE: Mail::sendmail

2003-02-27 Thread Wagner, David --- Senior Programmer Analyst --- WGO
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

Mail::sendmail

2003-02-27 Thread Steve Few
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]',

Re: Mail::Sendmail & attachments

2002-12-15 Thread Jerry Rocteur
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

Mail::Sendmail & attachments

2002-12-15 Thread Adam Stuckey
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

RE: Mail::Sendmail Module

2002-11-06 Thread Kipp, James
> > > 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

Re: Mail::Sendmail Module

2002-11-06 Thread Paul Johnson
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

Re: Mail::Sendmail Module

2002-11-06 Thread Gary Stainburn
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

Re: Mail::Sendmail Module

2002-11-06 Thread Gary Stainburn
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

RE: Mail::Sendmail Module

2002-11-05 Thread Kipp, James
> > 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

Re: Mail::Sendmail Module

2002-11-05 Thread LRMK
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

Re: Mail::Sendmail Module

2002-11-05 Thread Gary Stainburn
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

RE: Mail::Sendmail Module

2002-11-05 Thread Scott, Joshua
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

Re: sending email - Mail::Sender and Mail::Sendmail

2002-01-25 Thread Rex Arul
> 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

RE: sending email - Mail::Sender and Mail::Sendmail

2002-01-25 Thread Gary Hawkins
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:

Mail::Sendmail module error trap

2002-01-11 Thread freiref
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

In the lion's pit and mail::sendmail

2001-07-20 Thread Customer Service
variables, but it’s the only way it worked. Sorry, don’t 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

Re: Mail::Sendmail

2001-05-11 Thread Gary Stainburn
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

Re: Mail::Sendmail (attachment addendum)

2001-05-11 Thread Paul
--- 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'

Re: Mail::Sendmail

2001-05-11 Thread Paul
--- [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

Mail::Sendmail

2001-05-11 Thread Kailash . Subramanian
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