Email format in the recipient email is incorrect
Clicking the 'Envoyer' (Send) button, an email is sent from the application.
For example, below is format of the sent email.
At the recipient, the email displays as below.
The New lines used, to format the email body, do not display. Hence, the email format displays incorrectly
Steps to Reproduce
Click the 'Envoyer' (Send) button. An email is sent from the application.
Internally, the CorrNew activity is called with the below parameters:
Set Message to .pyInboundEmail.pyBody
Set PartyRole to ToReciepient
Set EmailSubject to .corrSubject
Set AttachmentCategoriesToSend to PieceJointeTransfer,File
Set CC_PartyRoles to ccReciepient
On a first approximation, the application works as designed; the body property is of type String and the control used to enter data is a Text control.
Hence, when the sample text is entered, it displayed (as below) as a Java String literal notation.
Hello\n\nThis is a test.\n\nRegards
When an HTML email was sent, the body of that email was as below.
This is a test.
Perform either of the following local-change:
- Send emails PlainText Instead of HTML emails.
- Use a RichText control instead of Text control for the email body.
- Convert the plain text body to valid HTML (replacing the linefeed characters with '<br>' HTML sequences).