Hey everyone..Hopefully someone can help me out here. I have a form online that people can come in and make requests through. Someone comes in and fills out the form and submits it..Once that form is submitted it is sent via email to my outlook. What I am trying to do now is use VBApplications or something similar to figure out how I can take the body of that email in outlook and save it to a local text file. Another thing I was considering would be some sort of php script that ran on the server and checked for the emails via SMTP or something - when it saw the email it would save the body to a text file on the server somewhere... has anyone ever done something like this before? Anyone know of any tutorials or sites online that explain this? I need to get the form content that is sent via email to get saved into a local text file...
Did you use your friend Google to find your answer? Things like this have been done for years and Google should have all of your answers.
I've looked on Google of course...Believe it or not I haven't found much. From what I did find you would definitely need your own program to do this..I found some VB code i've been messing with but its still throwing up errors. Any other suggestions?
One option would be to scrape the source code of the email. I don't know if you can do that in VBApplications or not but any language that supports low level access should be able to do that. I know it can be done in FoxPro, but that program is ancient and no longer available.
Best is use imap and read it in php, see tutorial here http://davidwalsh.name/gmail-php-imap For writing something you got to a file use function file_put_contents. Hope it helps.