I have created the onfly pdf but its not sending mail to desired email address |
[eluser]Unknown[/eluser]
Hi I am new at CI I have faced a problem after generating a on fly pdf and send it to my user. It creates on fly pdf but does not attach at email. this this is my model function where i called the pdf class Code: function counter_offer_submit(){ and the pdf function is Code: function pdf() Please Help me!!
[eluser]danmontgomery[/eluser]
I see all kinds of problems here. First, you never attach anything, so I'm not sure how you expect the file to appear in the email. Your pdf function doesn't return anything... I'm not familiar with cezpdf, but in order to assign a value to $contract_letter, the pdf() function needs to return something. You also generate the filename after you generate the pdf, (and don't reference either ever again). It should work like this: 1. Generate PDF 2. Save PDF to a path 3. Attach PDf to email (by using the path generated in the previous step) 4. Send Email http://ellislab.com/codeigniter/user-gui...email.html |
Welcome Guest, Not a member yet? Register Sign In |