Sending Formatted Email via ShellExecute() Problem?

Hi All

I am making a dialog based application.

In one of my DlgBoxes i need to take some input from the user and email the same at some address.

Now the problem is that i am not able to format the email body properly.

I have 3 edit boxes where i prompt the user to enter his name, his company name and his email address.

Using the ShellExecute(), i am able to fill correct entries in the to: cc: subject: editboxes but the real problem comes when i try to write the body content.

Under current circumstances name,company name and email address are being displayed on the same line whereas i want them to come in seperate lines as:

Name:               X
Company Name:       Y
Email Addrss:

Waiting for suggestions?



Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mathu76Author Commented:
Thanks tKalchev for your suggestion in my dialog based mfc application i cannot do like this.

The point is that as a result of the user entering the text in the three edit boxes i have three CString objects to deal with (Name,Company Name and Email). so first i would need to do the formatting first and then only i think i can assign the resultant string to the Body variable.

Waiting for comments.
Then simply concatenate the strings :

"mailto:" + The Email address to which you must send the email +
"?Subject=" + Desired Subject +
"&Body=Name%20%20:%20" + Name Field +  
"%0ACompany%20Name%20%20:%20" + Company Name +  
"%0AEmail%20Address%20:%20" + Email Field


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mathu76Author Commented:
Thanx tKalchev for your comments.Your suggestion has helped me to solve my problem.
Thanx once again.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.