E-mail and XML-file

H

Hans

Hi,

I have a form with a repeating section from which I want to send a mail to
different receivers for every section and without the attached xml-file.
In the repeating section I have a button that sends/creates a mail with a
request for quote, and I don't want to send the xml file to all the suppliers.
If I use the XDocument.DataAdapters("DataConnection") method I don't send
the xml-file but I don't get the RequestForQuote view in the mail body either.
If I use the Application.ActiveWindow.MailEnvelope method the body looks
fine but now the xml file is attached.
The ultimate solution would be one button to send mail to receivers
according to all of the sections at the same time. But I think I can live
with having to press the Send button once for every section.

If someone could help me solve this it would be highly appreciated.

Regards,
Hans
 
S

S.Y.M. Wong-A-Ton

What version of InfoPath are you using? In InfoPath 2003, whatever you try,
you won't get the view in the body of an email. You'll need InfoPath 2007 for
that. Having said that, what you could do is insert the XML for each section
(this would be a node under a repeating group node in the data source) into
the corresponding email using multiple buttons or code it to loop through all
sections and generate and send an email with the XML for each section. But
you'll have raw XML in the emails and not InfoPath fields.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top