

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
HP Asset Manager 9.60 - Disable or suppress email messages?
Hello,
We have a "test" instance of HP Asset Manager. The test version of Automated Process Manager runs on a different server than the production version. However, the test database is a copy of the production database. It therefore has many workflows that send email.
We would like to "turn off" these emails in the test instance. Obviously, we would like to do so without changing every workflow.
Is there something I can do in the mail.ini file (or elsewhere?) in order to turn off email without generating errors in the amsrv log?
What would setting "SMTP=0" do?
I have read in the docs that the absence of mail.ini settings altogether would generate error messages. The docs I've read only really address how to turn email on, not how to turn it off.
Thanks,
Mike

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi Mike,
If you don't have your messages being sent within a script, there is not going to be a way to prevent the errors for not having messaging set up.
If you do have them in a script, then you just need to surround the with an if/then statement that is based on a value you have stored in the database to indicate it's a dev database. For example, let's say you put the word "DEV" in Field1 on the Admin Employee record when it's your dev database. Then in your script:
Dim Env as String
Env = AmDbGetString("SELECT Field1 FROM amEmplDept WHERE IDNo = 'ADMIN'")
later...
If Env <> "DEV" Then
lErr = AmActionMail(XXX)
End If
HPE Software Support
If this post has helped you resolve the issue, please flag it as solved.