Quantcast
Channel: SharePoint Legacy Versions - Using SharePoint Designer, InfoPath and Other Customizations Forum
Viewing all articles
Browse latest Browse all 2319

Send attachment from infopath form to email - C#

$
0
0
Hello,
i'm here again.
Today I try to send an attachment from infopath form to and email.
Howto ?
I have found this article, but i'm unsure if I need to include that class.

What I want is something like:

XPathNavigator root = MainDataSource.CreateNavigator();
string attachment = root.SelectSingleNode("/my:mineFelter/my:grp5/my:fileAttachment", NamespaceManager).Value;
msg.Attachment.Add(attachment);

But this fails of course, attachment should propably by a file or attachment datatype, but how ?

Jakob



Jakob Olsen

Viewing all articles
Browse latest Browse all 2319

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>