Home > AS/400 Tips > iSeries administrator tips > Configuring e-mail with Infoprint Server
iSeries 400 Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

ISERIES ADMINISTRATOR TIPS

Configuring e-mail with Infoprint Server


Bill Shaffer
08.21.2002
Rating: -4.00- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


Infoprint Server for iSeries (Program Number 5722–IP1) lets you convert any standard iSeries spooled file to PDF and send it as e-mail. To use this function, your OS/400 must be set up to send e-mail. The setup covered in this tip assumes the following:

  • TCP/IP is configured.
  • E-mail has not been set up before.
  • You want to use the command line to configure your system for sending e-mail.
  • If you use iSeries Navigator or Operations Navigator, you can follow the steps in the iSeries Information Center at http://www.as400.ibm.com/infocenter to set up your system to send e-mail. To find these instructions, go to Networking –> TCP/IP –> E-mail –> Configure e-mail.

    Overview
    These are the steps required to set up your OS/400 to send e-mail with Infoprint Server 5.1 and higher. Enter the commands with the given parameters and values as shown in capital letters below. If you prefer, enter the command (such as CHGDSTA), then press F4 to be prompted through the command. Pressing F11 toggles between the parameter keywords (such as SMTPRTE) and a list (sometimes partial) of acceptable values for that parameter.

    What you need to do

    1. Enter CHGDSTA SMTPRTE(INTERNET GATEWAY)
    2. Enter ADDDIRE USRID(INTERNET GATEWAY) USRD('Generic Internet user')
      SYSNAME(INTERNET) PREFADR(NETUSRID *IBM ATCONTXT)
    3. Enter CHGPOPA MSGSPLIT(*NOMAX) AUTOSTART(*YES)
    4. Enter CHGSMTPA AUTOSTART(*YES) MAILROUTER('mailrouter') FIREWALL(*YES)
      A value for MAILROUTER is required only if you want to control what happens when a name and address cannot be resolved. The mail router name would typically be set up by the system administrator. Specify MAILROUTER(*NONE) if you are unsure.
    5. Create user profiles for any users who want to send e-mail. We will create user JOEJ. Enter:
      CRTUSRPRF USRPRF(JOEJ) PASSWORD(not2bad) TEXT('Joe Johnson')
    6. Add users to the system distribution directory. The value for USER must be the same as the value for USRPRF specified in step 5. ISERIES is the system name of the iSeries that Joe works on. Enter:
      ADDDIRE USRID(JOEJ ISERIES) USRD('Joe Johnson') USER(JOEJ)
    7. Note: Complete this step only if you want to use an SMTP server to send e-mail with Infoprint Server. You cannot specify an SMTP server with Infoprint Server 5.1. You need Infoprint Server 5.2. This step requires *SECADM special authority. Add an SMTP address for the users in the system distribution directory.
    8. a. To add an SMTP address for the user ID JOEJ, enter WRKDIRE and press Enter.
      b. Choose option 2 (Change) by the user ID you want to change and press Enter.
      c. Press F19 (Add name for SMTP). If there is no SMTP address associated with this ID, a message appears on the bottom of the screen. Press Enter.
      d. Specify either the SMTP user ID and domain or the SMTP route. We specify the user ID and domain of Joe's Internet e-mail address.

    9. Enter ENDTCPSVR SERVER(*SMTP)
    10. Enter STRTCPSVR SERVER(*SMTP)
      You can now test the new e-mail setup by using the SNDDST command. We suggest you do this before testing Infoprint Server for the first time.
    11. Test the e-mail setup by entering this command. You can use the TOUSRID or TOINTNET parameters or both:
      SNDDST TYPE(*LMSG) TOUSRID((user address)) TOINTNET((me@mysystem.com)) DSTD('E-mail')
      LONGMSG('This is a test to determine whether my new e-mail setup works.')
      SUBJECT('E-mail test')
    12. Go to your Internet mail system or OS/400 to see if you have received the message. For instructions about using SNADS to receive e-mail on your OS/400, refer to the iSeries Information Center.

    For more information about using OS/400 commands or about setting up e-mail, go to any of these resources:

    • The iSeries Information Center: Contains information about commands, instructions to configure TCP/IP, and instructions to set up the OS/400 to send and receive e-mail.
    • The Redbook AS/400 E-mail Capabilities, SG24-4703: Contains instructions to configure TCP/IP, instructions to set up the OS/400 to send and receive e-mail, and various other e-mail topics.
    • SNA Distribution Services, SC41-5410-01: Contains information about using SNADS on the OS/400.
    • Infoprint Server for iSeries: User's Guide, G544-5775-01: Contains instructions about using Infoprint Server for iSeries, including instructions to send e-mail.
    • The Redbook IBM Eserver iSeries Printing VI: Delivering the Output of e-business, SG24-6250: Contains instructions about using Infoprint Server for iSeries, including instructions to send e-mail.
    • ----------------------------------
      About the author: Bill Shaffer is the iSeries product manager for output solutions. Based in Boulder, Colo., Bill is responsible for iSeries tools to manage printing and to reengineer output for e-business applications. You can reach him at wcshaff@us.ibm.com.

      ========================
      MORE INFORMATION
      ========================

      • V5R1 Printing and E-output
        Learn more about the functionality of Infoprint Server in this Webcast with Bill Shaffer
      • Does e-mail distribution from the iSeries 400 frustrate you?
        Search400.com member Vijayakumar Kannan shows you how to stop e-mail sent from the iSeries from arriving at the destination as different packets.
      • Send e-mail message from CLP
        When Search400.com member Jim Evans needs to notify key personnel when certain events (or error conditions) take place, he uses this simple tip to let them know. And if you're interested, he's also created a command, SNDEMAIL, which uses a message file and reference file to build the list of users and send messages so you do not need to hardcode user IDs and messages in my CL programs.
      • Send spreadsheets from AS/400 via e-mail
        Yes, it is possible to send a spreadsheet from the AS/400 via e-mail as an attachment. Mike Tillison's example uses a Qry/400 output file, but it could just as easily be done with a program output file, or Opnqryf output. There are a few simple rules to follow.


      Rate this Tip
      To rate tips, you must be a member of Search400.com.
      Register now to start rating these tips. Log in if you are already a member.




      Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



      RELATED CONTENT
      Systems Management
      Can you trust all those trigger programs?
      Are your backups complete?
      Controlling remote command processing
      Watch your profiles
      Avoid locking issues
      Send message to users at a remote site
      Security journal receiver management
      Top 10 backup commands
      Tracking critical file access in real time
      Create an iSeries Access image and update it with the latest Service Pack

      OS/400
      Top 10 backup commands
      Take control of your iSeries
      How to save time using the CPYTOPCD and CPYFRMPCD commands
      Top Q&A's on the OS/400
      Top 10 security tips
      Use caution when providing access to file shares
      How to set up an autostart job
      How does Sarbanes-Oxley affect you?
      Automated disaster recovery revisited
      Top 10 Administrator Tips

      iSeries Tools & Utilities
      Take control of your iSeries
      Vendors announce new products at fall COMMON
      The Lazy Coder talks about highlighting your code
      How does Sarbanes-Oxley affect you?
      Top 10 Administrator Tips
      CA Express utility helps you manage SSL certificates
      Windows XP SP2 causes problem for iSeries Access
      WebFacing v5.1.2 may save a lot of money
      Users speak out on lack of iSeries apps
      20 FTP tips in 20 minutes

      RELATED RESOURCES
      2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
      Search Bitpipe.com for the latest white papers and business webcasts
      Whatis.com, the online computer dictionary

      DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



iSeries Security - Security Tools, Physical Security and System Security
HomeNewsTopicsITKnowledge ExchangeTipsBlogsAsk the ExpertsMultimediaWhite PapersProducts
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts