I am using sendmail in one of my subroutines in the db.cgi.
This part works great:
print MAIL "$in{'Name'} has placed an entry into the database. $in{'Description'} ";
Soon as I try to do this:
$message = "$in{'Name'} has placed an entry into the database. $in{'Description'} ";
print MAIL "$message";
The description part doesn't work but the name and text does. I've tried so many combinations, including swapping out $in with $rec.
I am completely baffled. It has to do with the varibles somehow, because I can always get it to work properly without them. But I really need this to work:
print MAIL "$message";
Anyone have a clue as to what I'm doing wrong ?
This part works great:
print MAIL "$in{'Name'} has placed an entry into the database. $in{'Description'} ";
Soon as I try to do this:
$message = "$in{'Name'} has placed an entry into the database. $in{'Description'} ";
print MAIL "$message";
The description part doesn't work but the name and text does. I've tried so many combinations, including swapping out $in with $rec.
I am completely baffled. It has to do with the varibles somehow, because I can always get it to work properly without them. But I really need this to work:
print MAIL "$message";
Anyone have a clue as to what I'm doing wrong ?