I am using a module to email file attachments via sendmail.
The format for multiple attachments is:
'/dir/of/file/filename1.txt', '/dir/of/file/filename2.txt'
My filepath is static and defined as a variable,
$file_path.
The file name is read in from a flatfile, split, and built into arrays.
I end up with the following to make my path/file:
$file = "'" . $file_path . $fields[6] . "', ";
I am printing this in the email message, looks like this:
'/my/file/path/myfile/txt',
If I copy this out of the email and use it literally in the script my file sends, but if I use the variable
$file it doesn't. I can make one file send by losing the ' and , but I can't make multiple files send this way. If I use
\$file and print it to email it prints this:
'SCALAR(0x8111390)',
I've tried every combination of
", ' \' you name it...
What does all this mean? Please help!
Thanks,
Cliff
Update: added <code> tags, larsen