My Oracle Support Banner

E1: BSFN: Line Break in Email Text is Ignored When using API JDE_SendEMailSMTPExt to Generate Email with Text Substitution (Doc ID 1567432.1)

Last updated on MAY 30, 2017

Applies to:

JD Edwards EnterpriseOne Tools - Version 8.98 and later
Information in this document applies to any platform.

Symptoms

We are using JDE_SendEMailSMTPExt() API in a custom C business function to generate email.  The email text is formed by using a Workflow Message Template with text substitution using API similar to this:

pszSubsitutedText = jdeAllocBuildGlossaryWithSub( pszInitialText , ppValuestoSubsitute );

When we debug the C code, the text shows up correctly (no wrapping). However, the email received has text wrapping for some fields.

The same Workflow Message Template is used in Workflows using Send Message Extended system function to generate email and it is working fine.

The email text look like this:

Environment Generated : -------Test TEXT------- Submitted by: -------Test TEXT-------
Note:  All HR Workflows generated from a non-production environment are test messages and should be ignored ..................................................................................................
Please be advised that Human Resources has entered a change for the following employee with an  effective date of -------Test TEXT------- Employee Name: -------Test TEXT-------
Emp#: -------Test TEXT-------
Employee Type Previous: (-------Test TEXT-------) -------Test TEXT------- Employee Type Current: (-------Test TEXT-------) -------Test TEXT------- Employment Status Previous: (-------Test TEXT-------) -------Test TEXT------- Employment Status Current: (-------Test TEXT-------) -------Test TEXT------- Previous Payroll: (-------Test TEXT-------) -------Test TEXT------- Current Payroll: (-------Test TEXT-------) -------Test TEXT------- Previous Supervisor: (-------Test TEXT-------) -------Test TEXT------- Current Supervisor: (-------Test TEXT-------) -------Test TEXT------- Previous Company: (-------Test TEXT-------) -------Test TEXT------- Current Company: (-------Test TEXT-------) -------Test TEXT-------

It should be like this:

Environment Generated : -------Test TEXT-------
Submitted by: -------Test TEXT-------
Note:  All HR Workflows generated from a non-production environment are test messages and should be ignored  
..................................................................................................
Please be advised that Human Resources has entered a change for the following employee with an  effective date of -------Test TEXT-------  
Employee Name: -------Test TEXT-------
Emp#: -------Test TEXT-------
Employee Type Previous: (-------Test TEXT-------) -------Test TEXT-------
Employee Type Current: (-------Test TEXT-------) -------Test TEXT-------
Employment Status Previous: (-------Test TEXT-------) -------Test TEXT-------
Employment Status Current: (-------Test TEXT-------) -------Test TEXT-------
Previous Payroll: (-------Test TEXT-------) -------Test TEXT-------
Current Payroll: (-------Test TEXT-------) -------Test TEXT-------
Previous Supervisor: (-------Test TEXT-------) -------Test TEXT-------
Current Supervisor: (-------Test TEXT-------) -------Test TEXT-------
Previous Company: (-------Test TEXT-------) -------Test TEXT-------
Current Company: (-------Test TEXT-------) -------Test TEXT-------

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.