How to submit information from an application?
-
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
-
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
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?
-
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?
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
-
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
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?
-
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?
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