SPUG: How to use database variable in place of other variable
sweetsue at sweethomes.com
Thu Mar 14 10:05:29 CST 2002
Ok, so the subject makes little sense.
%mail = ( To => '$email',
>From => 'someemail at someplace.com',
Subject => 'Your $row Mailing Information',
Message => "Some message information"
sendmail(%mail) or die $Mail::Sendmail::error;
print "OK. Log says:\n", $Mail::Sendmail::log;
The script this is in also uses DBI to pull out some variables to include
individual emails. Normally, in the script I use something like:
my $email = "$row";
But this doesn't plug into the $email variable (as the script keeps failing
saying "No recipient"). How do I get the script to recognize the database
variables (which rotate through a whole list)?
Technician - One Site Marketing
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the spug-list