Anonymous_User Absent Member.
Absent Member.

Email attachment file name


I have a macro that executes when the user sends an email. In this macro, I want to get the subject of the email itself and the titles of all of its attachments (be they documents or other embedded emails that were attached).

To get the email subject, I use Groupwise.ComposingItem.subject

To get the attachment filename, I use Groupwise.ItemAttachmentGetDisplayName("X00", <attachment_index>)

However, this call only seems to work for document attachments. For other emails embedded in the current email as attachments, this call returns "Mail Attachment" instead of the name of the attached email. How can I get and modify the name (i.e. subject) of the attached email?

Thank you,
Labels (1)
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.