Synechron Frequent Contributor.
Frequent Contributor.
338 views

SendMail is not working in HP ALM Vb Script in Workflow > Script Editor

Hi Team,

We have a VBScript written in the HP ALM workflow's script editor. Based on certain conditions, we had added "SendMail" functionality to notify a desired group. This functionality has been working since over 5 years now, but has suddenly stopped working now. We have verified that all the parameters passed to it has valid information.

Could you please suggest the solution for the same?

Code Snippet:

if oldManualQaStatus = "Regression" then

mailSubject="Field has changed for the Freezed TestCase(TestID: "&testID&")"
mailBody="Hi,<br><br> User:<b> "&modifiedBy&"</b> has changed the field of Freezed TestCase <b>" &testCaseName&"</b>(TestID: <b>"&testID&"</b>) from <b>"&oldManualQaStatus&"</b> to <b>"&newManualQaStatus&"</b>.<br><br><br><br><br><br>This is an Auto Generated Mail, Please Do not reply."
Set tdc=TDConnection

tdc.SendMail mailTO,"",mailSubject,mailBody,""
end if

0 Likes
10 Replies
Highlighted
Knowledge Partner Knowledge Partner
Knowledge Partner

Re: SendMail is not working in HP ALM Vb Script in Workflow > Script Editor

It is likely this is an email server problem and not an ALM problem. Talk to the responsible server administrators.
Jan Czajkowski

[Please do not contact me off line for receiving support. Use the forum!]
0 Likes
Synechron Frequent Contributor.
Frequent Contributor.

Re: SendMail is not working in HP ALM Vb Script in Workflow > Script Editor

Hi Jan,

We tested the mail communication between the source and destination email ids by sending mails between the mail accounts, and it is working.

Could you please suggest in case you suspect some other issue?

With Warm Regards!!

0 Likes
NEW_ALM12 Outstanding Contributor.
Outstanding Contributor.

Re: SendMail is not working in HP ALM Vb Script in Workflow > Script Editor

@Synechron , like Jan said above, Im also supspecting similar. Which means there is a job called "Auto.qc.job.automai". This job mau be frozen. So, I would suggest to test below conditions: 

1) Go to aother project in same ALM instance

2) created or update a defect

3) See if you get email

4) if it fail

This is an issue in above mention job. So you would have to restart ALM service. If you have cluster, restart ALM service one after another. 

Before you restart, you may test, if emai is sending from project or not by clicking on "Send Email" tab in Project Site Admin.

1) Go to ALM Site Admin

2) Find the project that your updated or created project

3) click on the project name

4) The find "send email" tab present on the middle of the screen and  click on it. 

5) You should get an email

Above job can be view by below link:

http://company.domain.com:8080/qcbin/debug

Note: company.domain.com is your ALM instance url.

You alos need to check the same job in each cluster, if you are in cluster environment.

11-43-55-Untitled - Paint.png

0 Likes
Synechron Frequent Contributor.
Frequent Contributor.

Re: SendMail is not working in HP ALM Vb Script in Workflow > Script Editor

Hi,

We tried all the steps mentioned in below suggestion to tests with Site-Admin "send email", followed by a ALM service restart and resting using Site-Admin "send email" and the regular change field functionality. But, unfortunately, the mails are still not received. 

With warm regards!!

0 Likes
NEW_ALM12 Outstanding Contributor.
Outstanding Contributor.

Re: SendMail is not working in HP ALM Vb Script in Workflow > Script Editor

Are you getting email from other projects in same ALM instance?

Try restarting AML server. 

0 Likes
NEW_ALM12 Outstanding Contributor.
Outstanding Contributor.

Re: SendMail is not working in HP ALM Vb Script in Workflow > Script Editor

You mentioned you need to send email to desired group, "we had added "SendMail" functionality to notify a desired group." Is this desired group a Distribution List (DL)?

If yes, make sure the DL is not expired. Try sending email to the DL from Outlook and see if email is sent and received by users in that DL (group).

0 Likes
Synechron Frequent Contributor.
Frequent Contributor.

Re: SendMail is not working in HP ALM Vb Script in Workflow > Script Editor

Hi,

No, we are not getting email from even other projects of the ALM instance, so tried by restarting the ALM server too.

But the emails are still not being sent.

With Warm Regards

0 Likes
Synechron Frequent Contributor.
Frequent Contributor.

Re: SendMail is not working in HP ALM Vb Script in Workflow > Script Editor

Hi,

The email group mentioned has individual email ids which is working and is tested using outlook too.

Thank You!

With Warm Regards

0 Likes
NEW_ALM12 Outstanding Contributor.
Outstanding Contributor.

Re: SendMail is not working in HP ALM Vb Script in Workflow > Script Editor

Are users in that email group getting email when you click 'send email" in Site Admin of the specific project? Is "Send Email" box checked?

0 Likes
Respected Contributor.. abhinay_k Respected Contributor..
Respected Contributor..

Re: SendMail is not working in HP ALM Vb Script in Workflow > Script Editor

Apart from your VB Script for Automail, Please try to configure default "Automail" feature on any of the project by specifying the conditions(status, assigned to, detected by) and make sure that you enable the Send Mail option on the project in the Site Administration. After setting this, please try to create a defect and check immediately in the "BUG" table of that project in Site Administration by running the following query:-

"SELECT * FROM BUG WHERE BUG_TO_MAIL = 'Y' "

And if you can see the record here, ALM has triggered an automail for your action in the project.(It remains untill ALM sends the record from its queue and if delivers properly, then probably as @Jan Czajkowski said its the problem with your mail server integrated with ALM (or) its the problem with your customized VB code written for "Automail" functionality.

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.