Solved

eMail with ShellExecute

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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 tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

776 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