I am successfully sending an email attachment using the -attach parameter in Blat, but I want the file I send to be placed in a private directory.
$commandline = $blatpath;
$commandline .= $message;
$commandline .= "-attach test.txt ";
$commandline .= "-s $subject " if $subject;
$commandline .= "-t $recipients " if $recipients;
$commandline .= "-f $fromsender " if $fromsender;
$commandline .= "-c $ccaddress " if $ccaddress;
I tried this and the email was sent but without the attached file.
$commandline .= "-attach /private/test.txt ";
What basic mistake am I making?