18/10/24, 17:56 Document Display
Copyright (c) 2024, Oracle. All rights reserved. Oracle Confidential.
E1: BSFN: Send E-mail using Business Function (Doc ID 638934.1)
In this Document
Purpose
Overview
Scope
Details
JDE Business Functions
B0200900 JDEM Send EMail
B0500190 Send E-Mail - HRM
B0500725 Mail Merge Web Runtime Functions
B0800300 Send Benefits Confirmation
Custom Business Function
Sending More Than One Attachment
References
APPLIES TO:
JD Edwards EnterpriseOne Tools - Version 8.98 and later
Information in this document applies to any platform.
PURPOSE
Overview
Email can be sent using Send Message System Function, however, it does not allow sending attachment, business function
has to be used to send email with attachment.
This document details how to send email using existing business function and custom business function.
SCOPE
This document is for EnterpriseOne developer with limited knowledge in C language programming. Section about custom
business function however required advance knowledge in C programming language.
DETAILS
JDE Business Functions
B0200900 JDEM Send EMail
This business function send e-mail with a text attachment. This business function is Client only as it works with the
media object control within the application and sends the text entered in this media object control as an attachment on the
e-mail.
This business function will only work in interactive application on a Windows workstation. B0200900 is used in P012501.
We do not recommend using this business function.
B0500190 Send E-Mail - HRM
The business function B0500190 - Send E-Mail - HRM sends text from a variable (not a media object) that is passed to the
business function. This business function expects the text information for the message from a variable. It is not intended
to work with media object controls.
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-state=q6b04mino_4 1/2
18/10/24, 17:56 Document Display
B0500190 has a text limitation of 256 due to the data structure, but Send Message system function does not have this
same limitation.
This business function is available in Xe, ERP 8.0, 8.9 and 8.10.
Starting with 8.11, this business function is obsolete.
B0500725 Mail Merge Web Runtime Functions
The business functions B0500725 Mail Merge Web Runtime Functions will send an e-mail and allow an attachment. The
Business Function Location in OMW for it is set to 2 so it can run locally and on the enterprise/logic server. However, this
business function is complex and do not come with documentation.
You can use the Cross Reference Facility to search for all objects that use these business functions to see how they are
used. The following set up of B0500725 E-mail Merge Letter will work.
Email Merge Letter
"from_email_address" -> szFrom
"to_email_address" -> szTo
"Appropriate Subject" -> szSubject
"Appropriate Text" -> szMessageTextChar256
"1" -> cIncludeAttachmentFlag01
"\\enterpriseserver\folder\document.ext" -> szNameOfAttachmentFile
"document.ext" -> szAttachmentDisplayText
Additional Notes:
1. The attachment has to be on the enterprise server and the path to the attachment has to be in a universal naming
convention format (windows 2003 and above only) and passed to the szNameOfAttachmentFile.
2. The From, To and CC e-mail addresses have to be entered as an e-mail address, an address book number cannot
be entered.
3. The szAttachmentDisplayText parameter needs to include the appropriate extension.
4. All arguments can be passed in via a variable.
5. Review Doc ID 658096.1 E1: BSFN: How to Use B0500725 to Send External E-mail
B0800300 Send Benefits Confirmation
This business functions will send e-mail and allow an attachment. This can run locally and on the enterprise / logic
server. This business function is complex and does not come with documentation. Use the Cross Reference Facility to
search for all objects that use these business functions to see how they are used.
Custom Business Function
Developer can create a custom business function using API JDE_SendEMailSMTPExt to send an e-mail with an attachment.
This API is used in B0500725 and B0800300.
For documentation on API refer to Doc ID 652119.1 E1: BSFN: Documentation on JDE_SendEMailSMTPExt API
Sending More Than One Attachment
Custom business function must be used if there is a need to send an email with multiple attachments. Enhancement BUG
21295454 NEW BSFN TO SEND MULTIPLE ATTACHMENTS.
REFERENCES
NOTE:658096.1 - E1: BSFN: How to Use B0500725 to Send External E-mail
NOTE:652119.1 - E1: BSFN: Documentation on JDE_SendEMailSMTPExt API
BUG:21295454 - NEW BSFN TO SEND MULTIPLE ATTACHMENTS
Didn't find what you are looking for?
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-state=q6b04mino_4 2/2