Sending HTML emails directly from the AS/400

5 pts.
Tags:
AS/400
AS/400 email
HTML
HTML email
Our company uses the AS/400. As the person responsible for E-MarketingĀ I would like to be able to send HTML based emails to industry specific targets, I do not want to send PDF attachments but would rather send actual HTML email with images and in color. Is this possible?

Software/Hardware used:
AS/400 i series

Answer Wiki

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

Hi,

You could try the SNDDST command, specifying the following parameters:
TYPE = *LMSG – long message
TOINTNET = email address – this address must be in the directory list. (Press F1 to read about it).
SUBJECT = 60 chars max
LONGMSG = The body email content

I think you can put html code into LONGMSG parameter, and maybe include the image, encoding it to Base64 (google for “embedding images in html” to see how to do that).

Another way is to write a Java application that uses the Java mail API to send emails, and call it from RPG code. To use java classes from RPG read this http://publib.boulder.ibm.com/infocenter/iadthelp/v6r0/index.jsp?topic=/com.ibm.etools.iseries.pgmgd.doc/c0925076172.htm

Regards.

Discuss This Question: 5  Replies

 
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
  • YuVa47
    Hi, There is very good routine available from Easy400.net and is free Good luck YuVa
    1,300 pointsBadges:
    report
  • 65GTO
    I tried to use the Easy400.net code to put an PDF image in a email and it would not work. I could put the image on the email as a attachment, but not on the email its self.
    335 pointsBadges:
    report
  • Keo
    @ 65GTO my friend and i have been trying to put the image on the email as a attachment but cant seem to win. If its not asking too much with you can you please forward me the code
    55 pointsBadges:
    report
  • Dbbishop
    I'm not an AS-400 developer, but I found this elsewhere: CPYTOIMPF FROMFILE(MYLIB/MYFILE) TOFLR(TEMP) TODOC(MYFILE.TXT) REPLACE(*YES) SNDDST TYPE(*DOC) TOINTNET((my.name@company.com)) DSTD(A) MSG(Message) DOC(FILE.TXT) FLR(TEMP)
    55 pointsBadges:
    report
  • Asiebiz
    [...] Sending HTML emails directly from the AS/400 [...]
    0 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