Compiler Error - Name is not a member of 'System.Net.Mail.MailMessage'

Hi,

I’m trying to assign a file name to PDFs being extracted from an email. I get a compiler error - 'Name is not a member of ‘System.Net.MailMessage’". How do I resolve this?

I’ve attached the error message and my outlook PDF project to date.

Many thanks in advance.

Regards,

JeffMain.xaml (28.6 KB)
UI%20Path%20Compiler%20Error

@JeffNZ - The type argument to choose here should be "System.Net.Mail.Attachment’ since you are looking for the attachment name. Please see the attached file.Main-updated.xaml (27.6 KB)