RE: help needed for PDF attachment by e-mail

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear here with more detail as you requested, view fpdf class here http://www.fpdf.org/, here you can see example to generate pdf http://www.fpdf.org/en/script/index.php you just need to call output function with "S" parameter to see detail about output function browse http://www.fpdf.org/en/doc/output.htm.

 

after you are able to output your required pdf, use this code to send email using PHP-Mailer class (http://sourceforge.net/projects/phpmailer).

 

 

 $mail->AddAddress($order_email);  
 $mail->From    = $fromaddress;  
 $mail->FromName    = $fromname;   
 $mail->Subject = $subjectMail;  
 $mail->Body    = stripslashes($txtDesc); 
 include("invoice.php");//this file just contain the code to generate pdf with S parameter. for this see any example.
 $mail->AddStringAttachment($pdf->Output('invoice.pdf','S'), "invoice.pdf");  // optional name  
 $mail->AltBody="Dear Customer! \n\n This message uses HTML entities, but you prefer plain text, to view this message your email client should support html messages";
 
 if($mail->Send()){
 echo "Congratulations!!!!!!!!!!!!!!!!!!!!!";

 }else{
 echo "Sorry!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!";
 }


Thanks & Regards,
 
Tariq Mahmood
Webmaster 
Institute of Business & Information Technology
University of the Punjab
Cell:   +92-321-8806042
Phone: +92-42-9230825-6 (Ext: 113)
Email: tariq@xxxxxxxxxxxxx/webmaster@xxxxxxxxxxxxx
Web:  http://www.ibitpu.edu.pk
 
"This e-mail message (including any attachments) may contain confidential, proprietary or legally privileged information. It should not be used by anyone who is not the original intended recipient. If you have erroneously received this message, please delete it immediately and notify the sender. The recipient acknowledges that IBIT, Univeristy of the Punjab is unable to exercise control or ensure or guarantee the integrity of/over the contents of the information contained in e-mail transmissions and further acknowledges that any views expressed in this message are those of the individual sender and no binding nature of the message shall be implied or assumed unless the sender does so expressly with due authority of IBIT, University of the Punjab. Before opening any attachments please check them for viruses and defects."





 


To: php-objects@xxxxxxxxxxxxxxx
From: carlosani@xxxxxxxxx
Date: Wed, 18 Feb 2009 21:57:00 -0800
Subject: Re:  help needed for PDF attachment by e-mail







Where can I get this TC-Pdf script?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
Carlos Ani  
International Microfinance and SME Banking Consultant 

--- On Wed, 2/18/09, mohammed Ali Aziz <mohammed_aliaziz@xxxxxxxxx> wrote:

> From: mohammed Ali Aziz <mohammed_aliaziz@xxxxxxxxx>
> Subject: Re:  help needed for PDF attachment by e-mail
> To: php-objects@xxxxxxxxxxxxxxx
> Date: Wednesday, February 18, 2009, 7:13 PM
> I try " TC-Pdf " and find that it is more
> powerfull than class you use
> 
> 
> --- On Wed, 2/18/09, kranthi <kranthi117@xxxxxxxxx>
> wrote:
> 
> 
> From: kranthi <kranthi117@xxxxxxxxx>
> Subject: Re:  help needed for PDF attachment
> by e-mail
> To: php-objects@xxxxxxxxxxxxxxx
> Date: Wednesday, February 18, 2009, 5:58 AM
> 
> 
> 
> 
> 
> 
> i prefer this <http://www.ros. co.nz/pdf/> class for
> pdf generation.
> 
> generate a temp pdf file on the server and
> this<http://www.webcheat sheet.com/ php/send_
> email_text_ html_attachment. php>tutorial
> will help you in making that file as an attachment.
> Kranthi.
> >
> >
> > .
> >
> > 
> >
> 
> [Non-text portions of this message have been removed]
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> [Non-text portions of this message have been removed]
> 
> 
> 
> ------------------------------------
> 
> Are you looking for a PHP job?
> Join the PHP Professionals directory Now!
> http://www.phpclasses.org/jobs/
> Yahoo! Groups Links
> 
> 
> 









_________________________________________________________________
Access your email online and on the go with Windows Live Hotmail.
http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_HM_AE_Access_022009

[Non-text portions of this message have been removed]


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux