Welcome Guest, Not a member yet? Register   Sign In
I have created the onfly pdf but its not sending mail to desired email address
#2

[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


Messages In This Thread
I have created the onfly pdf but its not sending mail to desired email address - by El Forum - 01-20-2010, 10:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB