The code you have provided does not insert a blank line between the header data
(from, to, cc, subject, etc) and the message body.
This seems to cause your mailer to treat the whole message a 'message
body' which
is why the recipient gets an email with the 'CC' line separated from the header
by a
On Fri, 10 Sep 2004, Reinhold Riedersberger wrote:
> Are all the variables, particularly $zieladdressen, defined ?
Yes
Hmm.
Well, for debugging, you could try inserting the variables you're using
into the message body in an attempt to show exactly what's there:
print MAIL <
Textline1
Textline2
De
Reinhold Riedersberger wrote:
To: [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]<-- This mail will not be sent
If there actually is a blank line between those headers, the CC:
header (and everything after it) will be considered part of the
message body, and not a message header.
Does the $zieladres
Reinhold Riedersberger wrote:
why does the CC-line not send any mail?
The To-Line is well. And the CC-Line appears in the first mail. But
there will not send any mail to the cc-address.
Do messages to those two addresses possibly end up in the same
mailbox? In that case it may not be an error, but
Thank you Wiggins! I have changed everything that you suggested and I think
I am much closer. However, I have run into an error w/ the Read line.
foreach my $file (@files) {
$image->Read (file=> $file)
Bad filehandle: brian.jpg at C:/Program Files/PerlEdit/scripts/test_3.pl
line 17
as you ca
Hallo Chris,
> Are all the variables, particularly $zieladdressen, defined ?
Yes
> What do the message headers on a mail sent to the To: line look like ?
Return-path: <[EMAIL PROTECTED]>
Envelope-to: [EMAIL PROTECTED]
Delivery-date: Fri, 10 Sep 2004 01:14:41 +0200
Received: from [213.239.206.1
On Fri, 10 Sep 2004, Reinhold Riedersberger wrote:
why does the CC-line not send any mail?
Are all the variables, particularly $zieladdressen, defined ?
What do the message headers on a mail sent to the To: line look like ?
If you're hitting a dead end, this may be easier to do with a module
like
Please bottom post
Brian Volk wrote:
Thank you Wiggins! I have changed everything that you suggested and I think
I am much closer. However, I have run into an error w/ the Read line.
foreach my $file (@files) {
$image->Read (file=> $file)
Bad filehandle: brian.jpg at C:/Program Files/PerlEd
Hello once more :-),
why does the CC-line not send any mail?
The To-Line is well. And the CC-Line appears in the first mail. But
there will not send any mail to the cc-address.
What is there wrong?
open ( MAIL , "|$mailprog -t") || die "Kann $mailprog nicht öffnen!\n";
print MAIL "To: [EMAI
On Fri, 10 Sep 2004, Reinhold Riedersberger wrote:
ich habe ein für mich seltsames Problem:
Uhh, Anglisch, bitte.
Wir nicht spreche Deutsche.
Sprechen sie English ?
Wow my German is bad -- sorry if that makes no sense.
This is an English language list.
Please pose your question in English, not Germ
Hallo ,
ich habe ein für mich seltsames Problem:
Mit dem untenstehenden Programmteil habe ich früher (meine ich
zumindest) erfolgreich eMails nebst CC versendet. Seit mir unbekannter
Zeit wird aber nur noch der To-Empfänger amgemailt. Das CC erscheint
dann dort zwar im Kopf, aber das Mail geht n
Put this at the top of your script:
use lib '/tmp/perlNew/lib';
Or you can set the environment variable PERL5LIB to that path.
Rob
-Original Message-
From: Ajey Kulkarni [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 09, 2004 5:56 PM
To: [EMAIL PROTECTED]
Subject: Perl modules pat
hi,
I've a perl script which uses a perl module located in
/tools/tools/perl/lib. If i want to change this path to say
/tmp/perlNew/lib and make the script to fetch the new /tmp/perlNew/lib
path.
How can i do this??
TIA
-Ajey
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional command
--As of Thursday, September 9, 2004 9:24 AM -0500, Errin Larsen is alleged
to have said:
Excellent! Thank you. I knew it was something easy, just hadn't
kick-started my brain yet this morning. But I've got another one.
What if the user input, say, '007' on the command line? How can I
strip th
On Thu, 9 Sep 2004, Johann Spies wrote:
We have a situation that we need to open a dbm-file but cannot do so
using perl version 5.8.4-2 on Debian Sarge. The following script
fails, but the same script and dbm-file works on Woody with perl 5.6:
Apparently, DBM files can get messed up if you creat
Thats exactly my mistake, thanks to everyone
I have a sentence that look like this.
$mbd = DBI->connect("dbi:Pg:dbname=$database", "$username", "$password")
or die "Error opening database: $DBI::errstr \n";
$sth1 = $mbd->prepare
("
INSERT INTO public.
On Sep 9, Eduardo Vazquez Rodriguez said:
>@duration = $string =~ /\sduration=(.*?)\s/;
>
>The first element in duration contains "1.23", in a string format
>
>When I try to insert $duration[0], into a field of integer type in a database,
>I get the Following error:
>
>Error Column "duration" is o
>
> Hi All,
>
> I my perl script is crashing perl at this line;
>
> $image->Read (file=> \*ARGV);
>
> I know that it is this line because I have commented out everything else
> around it. When I just have the Read statment, perl will crash. Here is
> the script, can someone please sugges
Chad Kellerman wrote:
Johann,
I have had the same problem. Check, I bet the versions of Berkley DB
are different.
Chad
Johann Spies wrote:
We have a situation that we need to open a dbm-file but cannot do so
using perl version 5.8.4-2 on Debian Sarge. The following script
fails, but the sam
Hi All,
I my perl script is crashing perl at this line;
$image->Read (file=> \*ARGV);
I know that it is this line because I have commented out everything else
around it. When I just have the Read statment, perl will crash. Here is
the script, can someone please suggest what I am doing wro
Eduardo Vazquez Rodriguez <[EMAIL PROTECTED]> wrote:
: How can I convert my string "1.23" into a integer value,
: so I can insert correctly in the database
The answer is a question. How do you want to convert
1.23 into an integer?
use POSIX qw( ceil floor );
print int1.23; # 1
prin
Using regular expressions I match a criteria in a text string, such as:
@duration = $string =~ /\sduration=(.*?)\s/;
The first element in duration contains "1.23", in a string format
When I try to insert $duration[0], into a field of integer type in a database,
I get the Following error:
Error
Johann,
I have had the same problem. Check, I bet the versions of Berkley
DB are different.
Chad
Johann Spies wrote:
We have a situation that we need to open a dbm-file but cannot do so
using perl version 5.8.4-2 on Debian Sarge. The following script
fails, but the same script and dbm-file
We have a situation that we need to open a dbm-file but cannot do so
using perl version 5.8.4-2 on Debian Sarge. The following script
fails, but the same script and dbm-file works on Woody with perl 5.6:
#!/usr/bin/perl -w
use Fcntl;
use DB_File;
#use NDBM_File;
use DBI;
$dbfile = "/tmp/globald
On Sep 9, Errin Larsen said:
>However, I need to pass that variable to another system command which
>expects any "day" value less than 10 to have a leading zero, so 7th
>day of the month should say '07'. How can I check for that leading
>zero? If it's missing, I know I could easily:
>
>$option =
Please bottom post
> Use the following:
>
> $option = "0" . $option if ($option / 10 < 1 && $option !~ /^0/);
>
Why divide by 10 first? Why not just check less than 10? Of course I
would probably drop the maths completely and use C,
perldoc -f sprintf
$option = sprintf('%02d', $option);
Excellent! Thank you. I knew it was something easy, just hadn't
kick-started my brain yet this morning. But I've got another one.
What if the user input, say, '007' on the command line? How can I
strip that off? I think I can check for it with something like this:
/^0?[1-9]/
But If I find i
Use the following:
$option = "0" . $option if ($option / 10 < 1 && $option !~ /^0/);
~Sid
On Thu, 9 Sep 2004 08:58:36 -0500, Errin Larsen <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I have a variable I'm reading off of the command line:
>
> my $option = shift;
>
> That variable should hold a num
Hi All,
I have a variable I'm reading off of the command line:
my $option = shift;
That variable should hold a number between 1 and 31 (yes, a day of the
month) I am checking to make sure that the number does indeed lie in
that range.
However, I need to pass that variable to another system com
On Thursday 09 Sep 2004 12:20 pm, Flemming Greve Skovengaard wrote:
[snip]
>
> Don't you mean 'ping -n -c 50 10.1.1.31' instead of 'ping -n 50
> 10.1.1.31'. Else read the man page for ping.
Thanks for that, missed the obvious.
--
Gary Stainburn
This email does not contain private or confidenti
Gary Stainburn wrote:
Hi folks.
Got the simplest of small scripts that runs ping and shows the summary.
However, although the ping command works at the shell, it doesn't work
in the perl script.
any ideas?
#!/usr/bin/perl -w
while(1) {
my @lines=qx{ping -n 50 10.1.1.31};
my $times=pop @line
Hi folks.
Got the simplest of small scripts that runs ping and shows the summary.
However, although the ping command works at the shell, it doesn't work
in the perl script.
any ideas?
#!/usr/bin/perl -w
while(1) {
my @lines=qx{ping -n 50 10.1.1.31};
my $times=pop @lines;
my $counts=pop
Have a look at the Jargon File (google for an updated version). A
foobar-specific link
is http://www.catb.org/%7Eesr/jargon/html/F/foobar.html
Adrian Ichim
> -Original Message-
> From: jason corbett [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 08, 2004 8:14 PM
> To: perl beg
open F, "file.txt";
my @file = ;
chomp @file;
print "@file";
Is that what you want ?
- Original Message -
From: "Anish Kumar K." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 09, 2004 2:41 PM
Subject: how to skip new line character
Hi All
As a beginner in PERL,
> -Original Message-
> From: Jose Alves de Castro [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 08, 2004 7:42 PM
> To: Ing. Branislav Gerzo
> Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: HINT: regex coach
>
>
> On Wed, 2004-09-08 at 10:17, Ing. Branislav Gerzo wrote:
35 matches
Mail list logo