How to convert and send pdf format through mail after successful inserted

Hai,

I am looking for after creating member and payment is done so i created ID card and receipt for separate page, Now the question is after payment successfully i want to trigger a mail and this is working apart from that create and send ID card and Receipt in pdf format after payment successfully on that process only …!

any suggestion please…

thanks,

Use PHPMailer class.

Mailgun is all I use now, and it can sent attachments rather easily.

What you attempting to use to send mail currently, mail()?

Mail is working i want to how to generate pdf format and send to mail that pdf…

PDF is just text, read the specs or use a wrapper like FPDF or TCPDF. Then send the PDF as an attachment as the various RFCs explain in the MIME standard, or use a wrapper/API as already said.

Sponsor our Newsletter | Privacy Policy | Terms of Service