Line break in VpeSetMailText with HTML

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

Line break in VpeSetMailText with HTML

Postby Bengt » Fri Sep 16, 2016 1:12 pm

I need to use extended MAPI in Outlook mails to make it possible to have pictures in signatures which are added manually in Outlook.
I use VPE 7.1, Dataflex 17.1 with VPE-classes from StarZen

With the test code below and iMapi=1 (Extended MAPI), cr+lf doesn't generate a new line and the text in the mail is

Row1 Row2 Row3

but with iMapi=2 (Simple MAPI), cr+lf works and the text in the mail is

Row1
Row2
Row3


Code: Select all
Send DoVPEGetMAPIType to iMapi
If (iMapi=1) Send DoVpeSetMailText ("<html>"+"Row 1" + sCrLf + "Row 2" + sCrLf + "Row 3" + sCrLf+ "</html>")
Else Send DoVpeSetMailText ("Row 1" + sCrLf + "Row 2" + sCrLf + "Row 3" + sCrLf)


How can a linebreak be inserted when extended MAPI is used?

Bengt
Bengt
 
Posts: 89
Joined: Fri Jan 27, 2006 5:29 pm

Re: Line break in VpeSetMailText with HTML

Postby IDEAL Software Support » Fri Sep 16, 2016 2:36 pm

I would say, the question is rather how to create line breaks in HTML.

Use <p>Paragraph</p> or use <br />.
IDEAL Software Support
 
Posts: 1631
Joined: Thu Nov 18, 2004 4:03 pm

Re: Line break in VpeSetMailText with HTML

Postby Bengt » Mon Sep 19, 2016 4:07 pm

Of course it is so. It works.

A bit annoying is that the cursor is on the first line when the mail is shown in Outlook. It would be better if the last character was focused. Can that be influenced in Outlook?

Bengt
Bengt
 
Posts: 89
Joined: Fri Jan 27, 2006 5:29 pm

Re: Line break in VpeSetMailText with HTML

Postby IDEAL Software Support » Wed Sep 21, 2016 1:47 pm

Please contact Microsoft tech support with this question.
IDEAL Software Support
 
Posts: 1631
Joined: Thu Nov 18, 2004 4:03 pm


Return to VPE Open Forum

Who is online

Users browsing this forum: No registered users and 5 guests