Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to submit information from an application?

How to submit information from an application?

Scheduled Pinned Locked Moved C / C++ / MFC
sysadmintutorialquestion
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kevincwong
    wrote on last edited by
    #1

    Hi, I am working on an application that requires user to submit registration information to my company. There are a couple options for me. 1) bring up an email & pre-type all registraion information to the body but I am not sure it's doable or not. 2) create a submit button and send the information to our server but it requires some work in back end. Is there any better way to do it? If not, is that possible to pre-type the email? Can someone give me some ideas/suggestions? Thanks, Kevin

    O 1 Reply Last reply
    0
    • K kevincwong

      Hi, I am working on an application that requires user to submit registration information to my company. There are a couple options for me. 1) bring up an email & pre-type all registraion information to the body but I am not sure it's doable or not. 2) create a submit button and send the information to our server but it requires some work in back end. Is there any better way to do it? If not, is that possible to pre-type the email? Can someone give me some ideas/suggestions? Thanks, Kevin

      O Offline
      O Offline
      Office Lineman
      wrote on last edited by
      #2

      Sure. You could use MAPISendMail (PSDK) to send mail from the application. You could easily provide the registration information in your desired format within the message object, and just show the user a read-only copy (out of niceness). To the same end, there are also third-party add-ins that you can add to your app to handle mail sending. Remember, though, that if you want to process these incoming registration messages automatically, some SMTP servers change the content of email messages. For example, my office e-mail scans for viruses and adds a line indicating the messages has been scanned for viruses at the bottom of the message. -- I've killed again, haven't I?

      K 1 Reply Last reply
      0
      • O Office Lineman

        Sure. You could use MAPISendMail (PSDK) to send mail from the application. You could easily provide the registration information in your desired format within the message object, and just show the user a read-only copy (out of niceness). To the same end, there are also third-party add-ins that you can add to your app to handle mail sending. Remember, though, that if you want to process these incoming registration messages automatically, some SMTP servers change the content of email messages. For example, my office e-mail scans for viruses and adds a line indicating the messages has been scanned for viruses at the bottom of the message. -- I've killed again, haven't I?

        K Offline
        K Offline
        kevincwong
        wrote on last edited by
        #3

        Hi, Thanks for your suggestion. After reading http://www.codeproject.com/internet/cimapi.asp, I am able to send email from my application. However, it got a minor issue. My email body is about 10 lines with about 200 characters. I have "\r\n" to separate each line. The AfxMessageBox displayed the text correctly, 10 separate lines. But, the mail.Text ( ) concatenated my data to a huge BIG string. Do you know what caused the problem? Thanks, Kevin

        O 1 Reply Last reply
        0
        • K kevincwong

          Hi, Thanks for your suggestion. After reading http://www.codeproject.com/internet/cimapi.asp, I am able to send email from my application. However, it got a minor issue. My email body is about 10 lines with about 200 characters. I have "\r\n" to separate each line. The AfxMessageBox displayed the text correctly, 10 separate lines. But, the mail.Text ( ) concatenated my data to a huge BIG string. Do you know what caused the problem? Thanks, Kevin

          O Offline
          O Offline
          Office Lineman
          wrote on last edited by
          #4

          I just tried the CIMapi and the mail I sent with "\r\n" as a line separator came across as individual lines as expected. Have you checked the email message source to see if your CRLFs are coming through at all and just not getting displayed? -- I've killed again, haven't I?

          K 1 Reply Last reply
          0
          • O Office Lineman

            I just tried the CIMapi and the mail I sent with "\r\n" as a line separator came across as individual lines as expected. Have you checked the email message source to see if your CRLFs are coming through at all and just not getting displayed? -- I've killed again, haven't I?

            K Offline
            K Offline
            kevincwong
            wrote on last edited by
            #5

            Hi, I found the problem. The problem was caused by my Thunderbird, Mozilla. When I tested the same excutable on other machine with Outlook Express. Everything came out fine. Thank for your help! Kevin

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups