Solved

eMail with ShellExecute

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

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses
Course of the Month7 days, 19 hours left to enroll

617 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