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


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?

Who is Participating?
Éric MoreauConnect With a Mentor Senior .Net ConsultantCommented:
you better use this free component to send e-mail: http://www.freevbcode.com/ShowCode.Asp?ID=109

quebecloisirsAuthor Commented:
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).

Éric MoreauSenior .Net ConsultantCommented:
Adding Outlook to your references will force users of your application to also have Outlook properly configured on their PCs.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.