in debugging this issue we found that the reference to the file was not quite correct. We changed:
$WA_MailObject = WAUE_AddAttachment($WA_MailObject,"/docs/Special-Report_Top-3_Mistakes.pdf");
to:
$WA_MailObject = WAUE_AddAttachment($WA_MailObject,realpath("docs/Special-Report_Top-3_Mistakes.pdf"));
To get the file attached. In this case, it was coming through with a .dat file extesnion however.
We found that there where some missing semi colons in the WA_UniversalEmail\Mail_for_Linux_PHP.php file that was shipped with Universal Email 2.8.
I changed lines 234 - 236:
$mailAttachments .= " name=\"".basename($fileArr[3])."\"".$lineEnd;
$mailAttachments .= "Content-Transfer-Encoding: ".$fileArr[1].$lineEnd;
$mailAttachments .= "Content-Disposition: inline";
to:
$mailAttachments .= "; name=\"".basename($fileArr[3])."\"".$lineEnd;
$mailAttachments .= "Content-Transfer-Encoding: ".$fileArr[1].$lineEnd;
$mailAttachments .= "Content-Disposition: inline;";
to fix that problem.