i would like to create a multiline string in the body of an email.  i'm using "ShellExecute........mailto:........&body="

Posted on 2003-03-07
Medium Priority
Last Modified: 2012-05-04

I'm working on a VB6 application that have to send email and i would like to know how can i put a multiline string in the body of an email.

Here's my code for sending email:

Final = "mailto:desrosiers@blabla.com?subject=sujet&body=Nature de la demande"
ShellExecute 0, "open", Final, "", "", SW_NORMAL

is it possible to do a carriage return in the body string?

Question by:quebecloisirs
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
  • 2
LVL 70

Accepted Solution

Éric Moreau earned 100 total points
ID: 8090474
you better use this free component to send e-mail: http://www.freevbcode.com/ShowCode.Asp?ID=109


Author Comment

ID: 8102927
thanks for the answer...this .dll (vbsendmail) is a good tool.

but i solved the problem with a simplier solution.
i just need to use de outlook object(Pick outlook 8 object from references).

LVL 70

Expert Comment

by:Éric Moreau
ID: 8102981
Adding Outlook to your references will force users of your application to also have Outlook properly configured on their PCs.

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses

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