Page 1 of 1

pdf email

Posted: Mon Feb 23, 2004 6:04 pm
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

Posted: Mon Feb 23, 2004 6:08 pm
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.

Posted: Mon Feb 23, 2004 6:11 pm
by mudkicker
any code?

i'm interesting about this topic. because i'm doing a job like this now.

Ill Make it simple

Posted: Mon Feb 23, 2004 6:51 pm
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