Sendmail : VB & Mercury Test Director : Adding Attachments...
Hi,
Will you please help me out with how to emailfile attachments out of Mercury Test Director (v8.0) via sendmail?
I've added the following test code to the "Defects_Bug_AfterPost" subroutine:-
Dim strSubject
If Bug_Fields("BG_STATUS").value="New" Then
strSubject = "New defect - " & Bug_Fields("BG_BUG_ID").Value
Msgbox strSubject
TDConnection.sendmail Bug_Fields("BG_RESPONSIBLE").value, "SMC Test Team", strSubject, "this is the message", "", "HTML"
End If
This works fine, but being a bit of a newbie I'm at a loss as to how to ensure that any attachments added to the defect are emailed across at the same time.
The key is parameter 5 of sendmail (currently null).
There is a Bug_Fields("BG_ATTACHMENT") field but since there may be several files attached I would assume diggiing into some sort of array is required.
What do I have to prepare/reference in this paramter to get all attachments onto the email?
Any help much appreciated.

