Maybe separate the processes into two different scripts? One to generate the PDF and write to disk the other to email and remove from disk? Maybe set up a batch process - ie group the emails into batches of 500 or so? Creating a lot of pdf's does chew up memory. The only other thing is maybe send a link on the email instead of the pdf file itself to reduce the bandwidth hit when emailing?
hth Rod --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~----------~----~----~----~------~----~------~--~---