Forum Moderators: coopster
I have to send a massive email asking peeps to fill a form, and if they do, they will receive some relevant info as a mail.
I would like to know if I can have a script that automatically gets data from an email?
*starts to think*
Or, maybe I would just insert a frame/iframe within a mail with some php code to insert the fields data into the mySQL DB, and then sends a thankyou email...
Anyway, how do YOU accomplish this?
Thanks in advance!
The G man (hehe)
I would like to know if I can have a script that automatically gets data from an email?
Sure. There are lots of ways to set this up. They will depend on the setup you use to receive mail especially the local MTA you use. They all let you deliver mail to a process instead of some mail box.
Andreas
Procmail is a mail filtering program available on most Unix and Unix-like systems that lets you use an inscrutable configuration file to do anything you can think of with your mail automatically. Amongst the many things it can do is pass your incoming mail to another program when it comes in. You can use the configuration file to specify when one thing should be done with a message, and when another should be done instead, too, so you wouldn't have to send *every* message to your program.
<added> Oh, and the 'man' command is the easiest and most universal way to get help from a *nix command line. It is short for 'manual'. 'man foo' will display the manual page about foo.</added>