Solved

eMail with ShellExecute

Posted on 2000-03-23
3
218 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
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
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…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

828 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