How to send email directly to the Internet from OS/400

Source: Internet
Author: User
Starting from OS/400 v4r1, you can set the SMTP gateway, direct to an external email server (Lotus Domino, miscrosoft exchange, etc.) to help forward Internet mail. That is, Series I 400 automatically sends the mail to your specified MailServer, then the MailServer sends the email to the Internet. the implementation steps are as follows:

(1) set the TCP/IP environment and run the following command:
Select 10 (work with TCP/IP host table entries) and register the external MailServer name and corresponding IP address into hosttable.

(2) run the command chgsmtpa to confirm the parameter settings:
Autostart (* yes) and mailrouter (Mail-server-name ).

(3) registered users:
Adddire usrid (Internet smtprte) usrd ('Internet SMTP gateway') sysname (Internet) prefadr (netusrid * IBM atcontxt)

(4) modify the sending attributes:
Chgdsta smtprte (Internet smtprte)

(5) restart the tcp smtp Service:
Endtcpsvr * SMTP, strtcpsvr * SMTP

(6) Use wrkdire and confirm that the user who wants to use this function is also registered with the directory entry.

(7) test:
Snddst type (* lmsg) tointnet (E-mail address) dstd ('mail test message') lmsg ('mail test message ')

(if Chinese characters are transmitted, snddst type (* DOC) can only be sent as attachments:
crtflr FLR (chsfile)
cpytopcd fromfile (XXXX) toflr (chsfile) frommbr (XXX) todoc (XXXX. TXT) trntbl (* none) trnigc (* scgs)
snddst type (* DOC) tointnet (E-mail address) dstd ('test message') Doc (XXXX. TXT) FLR (temp)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.