line feed in outlook mail

  • Thread starter Thread starter touf
  • Start date Start date
T

touf

Hi,
I've a sub that open the default email client (outlook) using the command
mailto
Public Sub openNewMail()

Dim mailParam As String = "mailto:" & varEmailAddress

mailParam = mailParam & "&Subject=" & varEmailSubject

mailParam = mailParam & "&Body=" & varEmailText

System.Diagnostics.Process.Start(mailParam)

End Sub



How can I insert line feed in the text, I've tried CHR(13), but it doesn't
work.

Thanks
 
touf said:
I've a sub that open the default email client (outlook) using the command
mailto
Public Sub openNewMail()

Dim mailParam As String = "mailto:" & varEmailAddress

After the mail address you must include a "?" character. Notice that you
don't need a "&" in front of "subject:"
mailParam = mailParam & "&Subject=" & varEmailSubject

mailParam = mailParam & "&Body=" & varEmailText

System.Diagnostics.Process.Start(mailParam)

The data must be encoded, the following page (VB6) shows you how to do that:

<http://www.vb-tec.de/shellexe.htm>
 
Back
Top