pdf email

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
saeen
Forum Newbie
Posts: 24
Joined: Mon Sep 22, 2003 5:35 am
Contact:

pdf email

Post by saeen »

hi thr
i have made a small application for a company.. the whole process is that a user comes n fills out a form..the info is saved in a database ... then users name, address and some other info is taken and used to create a dynamic pdf which i have done..and finally this pdf is emailed to the user.
i have created the pdf using some ezPdf classes i found on net.. and now im tryen to email it using mime_mail.php but i get an error sayen that fatal error at send() method or something...lemme clear out the process
i have 2 fles one is register.php this file simply inserts the info in db and then calls a function of another class caled pdfCreation.php which has a function to create pdf.. this file creates pdf and if i try to print the pdf in the browser i get an error sayen header info already sent.. no wat i did was not to show the pdf in the browser instead mail it after creation but i got the error i told u abt b4...
any help wud b appreciated
qads
DevNet Resident
Posts: 1199
Joined: Tue Apr 23, 2002 10:02 am
Location: Brisbane

Post by qads »

go forward, and take a left, then take a right at the hotdog stand....

thats all i can help you with, without seeing any code no one can tell you whats wrong with it, at most, someone will post a method of how they did it.
User avatar
mudkicker
Forum Contributor
Posts: 479
Joined: Wed Jul 09, 2003 6:11 pm
Location: Istanbul, TR
Contact:

Post by mudkicker »

any code?

i'm interesting about this topic. because i'm doing a job like this now.
saeen
Forum Newbie
Posts: 24
Joined: Mon Sep 22, 2003 5:35 am
Contact:

Ill Make it simple

Post by saeen »

well i think pasting so much code here wont b a good idea well jus gimme an answer for this Q

i have a variable $pdf and it contains my pdf file i have created dynamically...now i don want to save this file on my disk all i want is to email this to the user and thats it... no more use for this $pdf...can u temme how to email it as an attachment atleast?
thank u
Post Reply