This definitely sounds like something that should be done on the server side 
and not done using a client side application. How are you sending the emails 
now from the flex app? Calling a php app that creates the mail and sends it via 
SMTP? If so, then why not just put the automated job logic in that layer?
 
If you absolutely have to do it in flex, I suppose you could doing something 
like have a windows task (not sure what OS you are using) exceute every night 
which kicks off the swf or the flex app and flash player embedded into an exe. 
Or you could just leave the flash player running with your flex app and use a 
timer in AS. Neither are very great solutions though, given that the flash 
player is a client side player :-)
 
Karl
 
Cynergy

________________________________

From: [email protected] on behalf of tyriker
Sent: Mon 2/19/2007 11:27 AM
To: [email protected]
Subject: [flexcoders] Automated Email Reports with Flex



We've built a Flex app to read XML data from an HTTPService, and
display the data as a report (a table or some sort of chart) to the
user. From within the app, the user can email the report to someone,
(we use the method of converting the Flex components to an image, and
then building an HTML file with the images embedded, and sending the
user an HTML email).

The problem we've come up against is how to automate and email such
reports (like on a nightly basis). With automation, there won't be a
'client-side' or browser to load the Flex app into to generate the
tables/graphs.

Is there a solution for this, or essentially, a way to run a
Flash/Flex app without involving a user/browser? Any command-line Flex
interpreters, or anything in PHP or another server-side language that
can 'trigger' a Flex app? Thanks.



 

Reply via email to