Hi Januz,Janusz wrote:Yeah
it's working
thanks a lot Kev1n
Would you assist me with sending email from the database probably with a demo video. I am trying to follow this post to set up but unsuccessful.
Appreciate your time and assistance.
nc07
Hi Januz,Janusz wrote:Yeah
it's working
thanks a lot Kev1n
Code: Select all
$to='jr_test@wp.pl';
$body=
'Hi,
This is email from nuBuilder.
Regards
Janusz';
$subj='Test #1';
$att='';
//$filesource = './upload-target/logo.png';
//$filename = 'logo.png';
//$att=array($filename => $filesource);
nuSendEmail( $to, '', '', $body, $subj, $att, false);
and replace the $y = shell_exec('send_pdf.sh'); with nuSendEmail(.....)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
//for($i = 0 ; $i < count($fl) ; $i++){
// $fnt = $fl[$i][0];
// $PDF->AddFont($fnt, '', '', true);
//}
Thanks Janusz,Janusz wrote:Hi,
You can exclude fonts attachement to the generated pdf file.
in the nurunpdf.php at line c.a. 33
comment as following:this should reduce the size from about 1.8M to few KBCode: Select all
//for($i = 0 ; $i < count($fl) ; $i++){ // $fnt = $fl[$i][0]; // $PDF->AddFont($fnt, '', '', true); //}