API QtmsCreateSendEmail (Create and Send MIME E-mail) RPG IV Sample

​API QtmsCreateSendEmail (Create and Send MIME E-mail). This API became available with OS release V7R1. It caters for both creating the MIME note and sending it through SMTP.
https://www.ibm.com/docs/en/i/7.5?topic=ssw_ibm_i_75/apis/qtmscreatesendemail.html
This article is presenting a simple use case of sending an email to one user.
The sample is written in RPG IV language and assumes the prerequisites which are documented in the API have all been implemented.
The sample is not written to include extensive error handling capability. Read More 

Verified by MonsterInsights