UPDATE! The community will be go into read-only on April 19, 8am Pacific in preparation for migration on April 21. Read more.
UPDATE! The community will be go into read-only on April 19, 8am Pacific in preparation for migration on April 21.Read more.
Ensign Ensign
Ensign
585 views

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

 

0 Likes
1 Reply
Fleet Admiral
Fleet Admiral

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

 

Jason Dowd
HPE Software Support

If this post has helped you resolve the issue, please flag it as solved.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.