Solved

eMail with ShellExecute

Posted on 2000-03-23
3
220 Views
Last Modified: 2010-04-04
Hi
I'm trying to send a eMail with the ShellExecute and it works fine. My standard email program is Outlook. But now I want to insert <CR>s in my message. I don't know why but Outlook seems to ingnore it.

I did it as following:
NewMessage := OldMessage + #13 where NewMessage and OldMessage are strings.

Does anybody know how I have to do this correctly?

Thanks
Dominik
0
Comment
Question by:weyermann
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 2

Accepted Solution

by:
Serega earned 20 total points
ID: 2652310
I suppose you need to insert <CR> and <LF> with quotes like this:

NewMessage := OldMessage + '%0D%0A' ;
0
 
LVL 6

Expert Comment

by:wimmeyvaert
ID: 2652865
Or another way to write it :
  NewMessage := OldMessage + #13#10

where :
  #13 = CR
  #10 = LF


Regards,
The Mayor
0
 

Author Comment

by:weyermann
ID: 2653001
Hi,
When I tried to add a #13#10 to my message nothing happens. But when I did the same thing with '%0D%0A' it works!

So I give the points to Serega.

Thanks for your help
Regards,
Dominik
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question