API JDE_SendEMailSMTPExt - Attachments
Hello,
I tested function B0500725 - EmailMergeLetter and it worked fine, but I need to send email with more than 1 attachment.
I checked API JDE_SendEMailSMTPExt documentation (E1:WRKFLW: SMTP Send Messge API and Error Return Codes for MIME Messages [ID 826593.1]) and as parameter "JDEMailMessageAtt *attachments" is an array, I guest I could send more than 1 attachement.
Then, I created a Custom function.
When I send just 1 attachment, functions works as designed, sending email perfectly.
When I send 2 or more attachments, function does not work. I get those erros:
3272/4012 WRK:Starting jdeCallObject Thu Nov 08 09:24:29.831001 jdesmtp.c3699
SMTP_ParseServerResponse : The SMTP server returned an error
0