Re: passing variables in EMAIL

2001-12-26 Thread timothy mccarthy
I always like to use the Mail::Mailer module instead... # use Mail::Mailer; $mailer = Mail::Mailer->new("sendmail"); $mailer->open({ From=> $from_address, To => $to_address, Subject => $subject,

passing variables in EMAIL

2001-12-26 Thread Lance Prais
I am unseeing the following piece of code to send email. In order for this email to be generated there needs to be an error in my script. use Mail::Sendmail;#Send and email if there are errors %mail = ( To => '[EMAIL PROTECTED]', From=> '[EMAIL PROT

Re: Passing variables in Email

2001-12-18 Thread John W. Krahn
Jeff 'Japhy' Pinyan wrote: > > On Dec 18, Lance Prais said: > > >I tried to use '((substr($line, 42, 7)' which the text I want to include but > >it did not show the output. > > You can't put code inside a quoted string and expect it to evaluate. "@{[ substr $line, 42, 7 ]}" :-) John -- use

Re: Passing variables in Email

2001-12-18 Thread Curtis Poe
--- Lance Prais <[EMAIL PROTECTED]> wrote: > I am unseeing the following piece of code to send email. In order for this > email to be generated there needs to be an error in my script. > > use Mail::Sendmail;#Send and email if there are errors > %mail = ( To => '[EM

Re: Passing variables in Email

2001-12-18 Thread Jeff 'japhy' Pinyan
On Dec 18, Lance Prais said: >I tried to use '((substr($line, 42, 7)' which the text I want to include but >it did not show the output. You can't put code inside a quoted string and expect it to evaluate. %mail = ( To => '[EMAIL PROTECTED]', From=> '[EMAIL PROTECTED]',

Passing variables in Email

2001-12-18 Thread Lance Prais
I am unseeing the following piece of code to send email. In order for this email to be generated there needs to be an error in my script. use Mail::Sendmail;#Send and email if there are errors %mail = ( To => '[EMAIL PROTECTED]', From=> '[EMAIL PROT