Is your email pop3, IMAP, MAPI, or webmail? The way you approach this depends on the target system.
IMHO pop3 would be the easiest. There you would only need to access your mail account to download the emails for processing. Gambas has PDF generation capabilities so that is not an issue. Another way to handle this would be to setup a GAMABS SMTP service and have the emails forwarded to that service. Then the app could be written to process any email that arrived in the inbox. As for an easy way.... Well, easy is a qualitative term and so the ease of development would depend on the programmer's experience and abilities. If you're using webmail and the front end is something like Squirrel Mail, then you have a nice table arrangement that can be easily parsed with GAMBAS. But if your mail account is something like Yahoo or Google I think a web parsing framework such as those used with Java or Python would ease development. A lot of my data collection tasks involve writing code in different languages. For example, One of my apps is a simple bash script that takes forms submitted as pdfs, and processes them using python and then stores the results in a MySQL DB which has some stored procedures for final processing. Then a cron script runs one every 5 minutes to get any new rows from the DB and place them in a queue to be reviewed by staff. The staff app then calls a php script that connects to a asterisk system if the staff needs to contact the client, and dials the clients number. Sadly, the staff review portion was not written in Gambas but in C++/Qt. Don't get bogged down into thinking that if you use GAMBAS for a portion of the app that you must use it for the whole app. You can create powerful systems by combining the resources found other tools. Gambas and most Linux software is designed to allow this kind of inter-connect via pipes, sockets, and files. So pick the tools that make each part of the process easiest and you development will be simplified. Hope this helps! On Mon, Jul 15, 2013 at 3:52 AM, Sprachschule Eilert < [email protected]> wrote: > For a Gambas script, I'm looking for an easy way of receiving an email > from my webserver. > > There is a contact form on our website, and it sends an email with the > contact data to me. The idea is to have another contact form which is an > application form, and to process these data by a Gambas to make them a > nice pdf to be sent back to the customer. > > Is there an easy way to read email from within a Gambas script even if > I'm not logged in the office with my mailer? > > Thanks for your ideas! > > Rolf > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gambas-user
