email from the as/400

115 pts.
Tags:
AS/400 email
i want to email a field (1000 char) from a file and put the text from the field in the body of the email. how do i do this?
ASKED: January 29, 2009  3:55 PM
UPDATED: June 10, 2009  2:49 PM

Answer Wiki

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

If you have the native AS/400 email server up and working, you can use the SNDDST command like below.

You could read your file using RPG or a CL and then issue this command in a CL program substituiting a variable in the LONGMSG parameter.

SNDDST TYPE(*LMSG) +
TOINTNET((‘user@domain.com’)) +
DSTD(‘Subject’) +
LONGMSG(‘long message could go here using a variable name’)

Discuss This Question: 3  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
  • rmb
    thanks, that is what i am going to do.
    115 pointsBadges:
    report
  • DHLSameday1
    Salutations! AS400 email function is new to me and very much would like to use it. I tried it using the following code from a test CLP, but received the an error message CPF9D03 "An Internet Address was specified in the TOINTNET parameter but there is no route SMTP gateway." What does this mean and how do I correct it? I know our AS400 sends emails using Sequel product. SNDDST TYPE(*LMSG) TOINTNET((*NONE) + ('ALEX.BERNARDO@DHL.COM' *PRI)) + DSTD('SUBJECT LINE TEXT') LONGMSG('LONG + MESSAGE COULD GO HERE USING A VARIABLE NAME') Regards, Alex Bernardo Alex.bernardo@dhl.com
    85 pointsBadges:
    report
  • Teandy
    Use the CHGSMTPA command to set up the IP address or name of the mail server you want to use. Also see http://www.lmgtfy.com/?q=email+on+the+iseries for more information.
    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