As recently there was a question on the mail usage in nuBuilder in the other post - so just for couriosity wanted to check the subject and please find enclosed some observations and results.
For that trial I was using DEBIAN server and have no idea if on server with MS Windows it will behave the same way.
So generally I was not succesfull to properly configure the standard php mail functionality.
Next I installed mutt - it was working OK in Linux but inside PHP script - it was not

And finally I installed mpack which is working fine.
proper mpack cofiguration you can find here:
http://ozzmaker.com/send-email-from-the ... tachments/
another step is to enable generation of pdf file on the server for that I modified the nurunpdf.php file by adding 2 lines - the first one to generate and save .pdf file and the second to send email.
Code: Select all
modifed nurunpdf.php
......
$PDF->Output('nureport.pdf', 'I');
// 2 lines belowe were added
$PDF->Output('/var/www/html/TestDB/uploads/nureport.pdf', 'F');
$y = shell_exec('send_pdf.sh');
// end
nuRemoveFiles();
.........
Code: Select all
and content of the send_pdf.sh
mpack -s "Daily Report" /var/www/html/TestDB/uploads/nureport.pdf jr_test@wp.pl
and short movie from the test (with test mail).
https://drive.google.com/open?id=1-BoIg ... LnauaoibSr