Solved

eMail with ShellExecute

Posted on 2000-03-23
3
214 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
3 Comments
 
LVL 2

Accepted Solution

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

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

Expert Comment

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

where :
  #13 = CR
  #10 = LF


Regards,
The Mayor
0
 

Author Comment

by:weyermann
Comment Utility
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

762 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now