News
Abstract
Send email as a monitor action
Content
Set up to send email from IBM i
Make sure the SMTP is in started status:

To start, right click and select "Start":
Add the sending user profile name to the SMTP Local Mailbox Directory
| ADDUSRSMTP USRPRF(userProf) |
Use SNDSMTPEMM command to send the email
|
SNDSMTPEMM RCP(xxx@yy.com) SUBJECT('Monitor &MON triggered.') NOTE('Monitor &MON on system &ENDPOINT has CPU Utilization over the value of &TVAL for &TDUR interval(s). Current value is &VAL.')
Use SNDSMTPEMM command to send a Text message
Find SMS Gateway address and use with 10-digit cell phone number:
Send message
Other requirements:
May 2025: If the customer has their email directory type set to *SMTP - which is the recommended setting now for security reasons, then they are not able to ADDUSRSMTP for user QSYS. To workaround the issue, the client will have to switch back to *SDD email directory type for IBM i SMTP since they are allowed to create a directory entry for the QSYS user profile and customize the SMTP name under the directory name to use a different email address than qsys@<IBMiFQDN>. We are currently in the process of scoping the work needed to correct this inconsistency since IDS is designed to always use the QSYS profile for email notifications. |
Was this topic helpful?
Document Information
Modified date:
06 May 2025
UID
ibm11164700