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.

[1213 byte] By [PhilinSlough] at [2007-12-23]
# 1

As this relates to some specific method sendmail which is almost certainly not a method in the VB.NET or the framework - I would suggest contacting the vendor for support on there API's.

This is probably the quickest and most effective way to get information on this.

spotty at 2007-8-30 > top of Msdn Tech,Visual Basic,Visual Basic Language...
# 2
fair comment...I'll do so...
PhilinSlough at 2007-8-30 > top of Msdn Tech,Visual Basic,Visual Basic Language...