There isn't an "Attachment" property on the MailEnvelope object. It's best to
use an EmailAdapter instead. On an EmailAdapter object, you can change the
name of the IP document by setting its "AttachmentFileName" property.
Download the InfoPath SDK
(http://www.microsoft.com/downloads/details.aspx?familyid=351f0616-93aa-4fe8-9238
-d702f1bfbab4&displaylang=en)
if you do not already have it, and search on "EmailAdapter" and
"AttachmentFileName" to get a sample on how to use them.
---
S.Y.M. Wong-A-Ton
> I just created some forms that use the code below to send them as
> email. The IP document is also attached to the email and named
[quoted text clipped - 9 lines]
> Although this is a beginner level question I'm having trouble finding
> the answer. Thank you.
djohnson - 03 Mar 2006 19:54 GMT
Yes... EmailAdapter looks much better and cleaner for what we need.
Thanks.