I want to create a system using php oop that acts like what banks use to send account statements to their customers every month end. I have been able to dynamically create pdf using fpdf by extracting info from the mysql database. I want a situation in which at the click of a button, pdfs will be generated on the fly from the database and sent as an attachment to each of the email address of the parent of each student in my application with the main body of the emails personalized for each student based on their info in the databse. How do I do this using php oop? What are the steps involved and how will such activity not affect the server so much? Any advice will be worked upon. Thanks in advance.
A special emailing system
|
@papadammy: Lots of ways to do it, but take a look at the PEAR Mail_Mime package:
http://pear.php.net/package/Mail_Mime/
This gives you an easy way to compose and send rich email messages with attachments etc.
Example: http://pear.php.net/manual/en/package.mail.mail-mime.example.php
Hope that helps!
--
Matt Doyle, Elated
3rd Edition of my jQuery Mobile book out now! Learn to build mobile web apps. Free sample chapter: http://store.elated.com/
http://pear.php.net/package/Mail_Mime/
This gives you an easy way to compose and send rich email messages with attachments etc.
Example: http://pear.php.net/manual/en/package.mail.mail-mime.example.php
Hope that helps!
--
Matt Doyle, Elated
3rd Edition of my jQuery Mobile book out now! Learn to build mobile web apps. Free sample chapter: http://store.elated.com/
New posts
Old posts


