My Oracle Support Banner

E-WF: How to Send Email With Content Type HTML (Doc ID 618929.1)

Last updated on FEBRUARY 06, 2019

Applies to:

PeopleSoft Enterprise PT PeopleTools - Version 8.2 and later
Information in this document applies to any platform.

Symptoms


           Provide example of how to send email as content type HTML as opposed to just type plain text.

Changes

Up to PT 8.49.12, this variable setting worked for Content Type;

&contentHtml = "Content-type: text/html; charset=US-ASCII";



As of PT 8.49.13, the C++ program that sends email, was changed to use MCF and javamail.  At this point the correct way to reference Content Type is;


&contentHtml = "text/html; charset=US-ASCII";



And if same code offers conditional html or plain text, code like this can be used;


If &Var_Html = True Then
   &contentHtml = "text/html; charset=US-ASCII";
Else
  &contentHtml = "text/plain; charset=US-ASCII";
End-If;


As of PT 8.50 and beyond which uses javamail, this is the format;

 

 

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
Changes
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.