Home > AS/400 Tips > iSeries administrator tips > Send e-mail message from CLP
iSeries 400 Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

ISERIES ADMINISTRATOR TIPS

Send e-mail message from CLP


Jim Evans
11.27.2001
Rating: -3.55- (out of 5)


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


I use this method to notify key personnel when certain events (or error conditions) take place. For example, a file has been sent or received, or a critical job step has completed or, more importantly, has encountered an error.

The first thing you need to do is make sure that there is an entry in the system directory for each person you want to send a message to. Note, they do not need to have an iSeries 400 user profile to be listed in the system directory. Add a user ID, address and description. The system name must be TCPIP. Leave the group blank. Page down and change the Mail Service Level to 2 = System message store and the Preferred address to 3 = SMTP name. Press F19 to change the SMTP name. Enter the e-mail address in the user ID (the part before the @) and the domain name (the part after the @). For instance: for my e-mail address: jevans@agia.com, I entered:

SMTP user ID . . . . . . jevans
SMTP domain . . . . . . . AGIA.COM

Now you are ready to add the e-mail message to your CL. In a CL program enter the Send Distribution command: SNDDST and prompt (F4). Enter *MSG for information to be sent, the user ID and address to send to (from the system directory), a description (this becomes the subject of the e-mail) and the message to send.

That's all there is to it. You can also create a distribution list to send to multiple user IDs. You just use the distribution list ID in the user ID and address on the SNDDST command and the message will be mailed to each user on the list.

Also, if anyone is interested I have created a command, SNDEMAIL, that uses a message file and reference file to build the list of users and send messages so I do not need to hardcode user IDs and messages in my CL programs. Write to me, Jim Evans and I will send the code for the command and CLP to anyone that would like to see it.

==================================
MORE INFORMATION ON THIS TOPIC
==================================

The Best Web Links: tips, tutorials and more.

Ask your systems management questions--or help out your peers by answering them--in our live discussion forums.

Ask the Experts yourself: Our systems management gurus are waiting to answer your technical questions.


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
Implementation
Getting modules to adopt authorities from the main program
iSeries i5/OS: Top 10 Q&As
iSeries i5/OS: Top 10 Q&As
Using the SPLF0200 format in QUSLSPL API
New option within the WRKSYSACT command
Identify files used in all queries
Security Tools can help manage your system security
Client Access Express password cache
Check constraint allows database admins to sleep a bit better at night
See the users with *change or *all authority
Implementation Research

iSeries administrator tips
Analyze the health of your IBM i server with iScore
Researching high availability for your System i shop
Translating Linux for IBM i admins: Using GUI to make it easy
Translating Linux for IBM i admins: Working with jobs and networking
OpenOffice: What to know before making the transition from Microsoft Office
OpenOffice: An enterprise open source solution
Database performance comparisons on IBM i
Translating Linux for IBM i admins: User profile commands
Modern System i reports using Client Access
Tips for installing Lotus Domino server on a System i partition

Groupware & E-mail
What's Domino's destiny?
'Twas the Night Before Christmas in IT
Domino 6.5 to be released Sept. 30
IBM uses Linux to ease e-biz transition
IBM Community Tools valuable, but underused
Interview: John Swainson, IBM Software Group
Windows Server 2003 to impact iSeries
Lotus fixes ND 6 problem
Tips for migrating from Domino 5 to Domino 6 on the iSeries
Admin2003 to cover more territory

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
AS/400  (Search400.com)
i5/OS  (Search400.com)
iSeries  (Search400.com)
OS/400  (Search400.com)

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