API to send email messages from RPGLE

5 pts.
Tags:
API
iseries v5r4
RPGLE
RPGLE Program
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

Answer Wiki

Thanks. We'll let you know when a new response is added.

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

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Teandy
    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,860 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following