Robbie Staufer wrote:
> 
> Hi,

Hello,

> I have a perl script that takes in form data and generates and email
> with the data to be sent to me.  I'm getting the error message
>  Error:Bad or missing From address: '$from_address'.  The webmaster says
> I'm using the correct from address, so, any ideas about this error message?
> 
> Here's what I have:
> 
> ### send mail #####
> 
> $from_address = "[EMAIL PROTECTED]";
> $to_address = "[EMAIL PROTECTED]";
> $subject = "ESMF Registration Form";
> 
> %mail = (
>         SMTP    => 'finster.scd.ucar.edu',
>         from    => '$from_address',
>         to      => '$to_address',
>         subject => '$subject',

Variables inside single quoted strings do not interpolate.

         SMTP    => 'finster.scd.ucar.edu',
         from    => $from_address,
         to      => $to_address,
         subject => $subject,


John
-- 
use Perl;
program
fulfillment

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to