E1:WRKFLW: SMTP Send Messge API and Error Return Codes for MIME Messages

(Doc ID 826593.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.

Goal

JDE_SendEMailSMTPExt API

JDE_SendEMailSMTPExt API is extension to JDE_SendEMailSMTP API. It allows the caller to e-mail to one or more recipients using the Simple Mail Transport Protocol (SMTP) with support for multimedia attachments. JDE_SendEMailSMTPExt is exported for use in OneWorld business functions and is available in both client and server environments.
JDE_SendEMailSMTPExt complies with the SMTP specification found in RFC 822 and supports the standard Multimedia Internet message exchange (MIME) protocol, up to and including RFC 1806.

External Dependencies

Prerequisites to using of JDE_SendEMailSMTPExt are that a host running the SMTP service (TCP port 25) must be accessible from the calling machine and the hostname of the SMTP service must be specified in the mailServer key of the [JDEMAIL] section of the jde.ini file in the environment from which the JDE_SendEMailSMTPExt API will be called.

Example:


[JDEMAIL]
mailServer=mailserv1




Syntax

#include <jdekprto.h>
JDEMailError JDE_SendEMailSMTPExt(
JCHAR *myEmailAddress,
JCHAR *emailBuffer,
JCHAR *emailSubject,
JCHAR *contentType,
JDEMailMessageAtt *attachments,
int numAttachments,
JCHAR *recipients,
JCHAR *cc,
JCHAR *bcc)






Parameters



ParametersTypeNote
myEmailAddress JCHAR * A pointer to a NULL-terminated string that specifies the fully qualified SMTP e-mail address of the sender.
emailBuffer JCHAR * A pointer to a NULL-terminated string that specifies the body of the e-mail message.
emailSubject JCHAR * A pointer to a NULL-terminated string that specifies the subject of the e-mail message.
contentType JCHAR * A pointer to a NULL-terminated string that specifies the content type (or mime-type) of the e-mail message. System/include/mime_type.h file can be used to define different types of content types.
attachments JDEMailMessageAtt * A pointer to an array of structures that specify items to be attached to this e-mail.
numAttachments int A nonnegative integer that specifies the number of structures in the attachments array that should be attached.
recipients JCHAR * A pointer to a NULL-terminated string that specifies the fully qualified SMTP e-mail address or addresses of the primary recipient or recipients of the e-mail. Multiple primary recipients may be specified as a list of e-mail addresses delimited by the semicolon (;) character.
cc JCHAR * A pointer to a NULL-terminated string that specifies the fully qualified SMTP e-mail address or addresses of the secondary recipient or recipients of the e-mail. Multiple secondary recipients may be specified as a list of e-mail addresses delimited by the semicolon (;) character.
bcc JCHAR * A pointer to a NULL-terminated string that specifies the fully qualified SMTP e-mail address or addresses of the hidden, secondary recipient or recipients of the e-mail. Hidden, secondary recipients receive the message; however, the header of the message does no show the e-mail addresses of the hidden, secondary recipients. Multiple hidden, secondary recipients may be specified as a list of e-mail addresses delimited by the semicolon (;) character.

 

 

 

Unable to send MIME (Multimedia Internet Message Exchange) messages via SMTP to users. Getting error code 29 from the log when sending email messages via a custom business function from an interactive application. What does error code 29 indicate?

Errors in jde.log:



Solution

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms