5 pts.
 API to send email messages from RPGLE
I need to send an email message to a couple of mail idsĀ  with CC mail id also. Is there any API (which is not in java) which will enable me to send the mail ?

Software/Hardware used:
iSeries V5R4
ASKED: December 9, 2009  6:38 AM
UPDATED: December 17, 2009  1:09 AM

Answer Wiki:
Hi, Check out the following links: http://www.partner400.com/examples/RPGMail.htm http://www.easy400.net/easy400p/main.html and check MIME & Mail Good luck, YuVa47 ========================================================= The Easy400 MMAIL is a free download that has been very successful. That's already noted in earlier comments. But the answer to your question is that the <a href="http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/rzair/rzairsendrece.htm">QtmmSendMail API</a> is available directly to ILE RPG. If you understand how SMTP e-mail works, then the API is relatively easy. If you don't already know what SMTP requires, and how concepts like MIME are important, then you're far better off using something like MMAIL. You're essentially creating an actual e-mail client when you call QtmmSendMail. You can't just send any string of bytes you want -- they have to be prepared. Tom
Last Wiki Answer Submitted:  December 17, 2009  1:09 am  by  TomLiotta   108,215 pts.
All Answer Wiki Contributors:  TomLiotta   108,215 pts. , YuVa47   1,285 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Most email programs, whether free like YuVa47 mentioned or commercial, are going to be wrappers for the java mail api’s so you won’t need to know java if that is what you are worried about.

If you are looking for something down and dirty and don’t want to spend any money you could just use SNDDST.

However, once your users get used to receiving email from the iSeries, then the request will get more and more complicated. When that happens, I would recommend using one of the above mentioned free programs or one of the commercial ones.

When that happened to us we got one from Brad Stone at:

http://www.bvstools.com/mailtool.html

Or you can get Aaron Bartell’s free program at:

http://www.mowyourlawn.com/RPGMail.html

 5,830 pts.