How do I save email content to a text file?

Discussion in 'Programming' started by FPForum, Sep 29, 2011.

  1. #1
    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...
     
    FPForum, Sep 29, 2011 IP
  2. mmerlinn

    mmerlinn Prominent Member

    Messages:
    3,197
    Likes Received:
    819
    Best Answers:
    7
    Trophy Points:
    320
    #2
    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.
     
    mmerlinn, Sep 29, 2011 IP
  3. FPForum

    FPForum Notable Member

    Messages:
    4,172
    Likes Received:
    102
    Best Answers:
    0
    Trophy Points:
    225
    Digital Goods:
    2
    #3
    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?
     
    FPForum, Sep 29, 2011 IP
  4. mmerlinn

    mmerlinn Prominent Member

    Messages:
    3,197
    Likes Received:
    819
    Best Answers:
    7
    Trophy Points:
    320
    #4
    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.
     
    mmerlinn, Oct 1, 2011 IP
  5. Vooler

    Vooler Well-Known Member

    Messages:
    1,146
    Likes Received:
    64
    Best Answers:
    4
    Trophy Points:
    150
    #5
    Vooler, Oct 1, 2011 IP
  6. psmsoftware

    psmsoftware Peon

    Messages:
    53
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    If you still dint managed to do it then kindly let me know ill do it for you.
     
    psmsoftware, Oct 4, 2011 IP