Form Email

  • Thread starter tucsondavenport
  • Start date
T

tucsondavenport

I have built a form for a quote tool and I want to be able to send the
information entered in the form via email. The only catch is - I want the
form to dump the information to a text format (not everyone I am sending it
to has infopath.) Is this even possible? if so, how? I've looked
everywhere.

troy
 
B

Bruno DUPUY

Hi,

Very interesting. Is there a way to it (File \ Send to Email Recipient) by
code, within Infopath?
 
F

Franck Dauché

Hi Bruno,

Sure, in C# for example:
EmailAdapter oEmail =
(EmailAdapter)thisXDocument.DataAdapters["MyEmailConnectionReference"];
oEmail.Intro = thisXDocument.DOM.xml; //Form xml as E-mail body.
oEmail.Submit();

Regards,

Franck
 
B

Bruno DUPUY

Hi,

thanks for your answer.

last question, is there a way to do by code "File / export to ... Web" and
generate a mht ?

Bruno


Franck Dauché said:
Hi Bruno,

Sure, in C# for example:
EmailAdapter oEmail =
(EmailAdapter)thisXDocument.DataAdapters["MyEmailConnectionReference"];
oEmail.Intro = thisXDocument.DOM.xml; //Form xml as E-mail body.
oEmail.Submit();

Regards,

Franck

Bruno DUPUY said:
Hi,

Very interesting. Is there a way to it (File \ Send to Email Recipient)
by
code, within Infopath?



"Franck Dauché" <[email protected].(nospamplease)> a écrit dans le
message
de news: [email protected]...
 
F

Franck Dauché

Yes, use: XDocument.View.Export(YouPath, "MHT");

Regards,

Franck

Bruno DUPUY said:
Hi,

thanks for your answer.

last question, is there a way to do by code "File / export to ... Web" and
generate a mht ?

Bruno


Franck Dauché said:
Hi Bruno,

Sure, in C# for example:
EmailAdapter oEmail =
(EmailAdapter)thisXDocument.DataAdapters["MyEmailConnectionReference"];
oEmail.Intro = thisXDocument.DOM.xml; //Form xml as E-mail body.
oEmail.Submit();

Regards,

Franck

Bruno DUPUY said:
Hi,

Very interesting. Is there a way to it (File \ Send to Email Recipient)
by
code, within Infopath?



"Franck Dauché" <[email protected].(nospamplease)> a écrit dans le
message
de news: [email protected]...
Hi,

If you go to File \ Send to Email Recipient, the form will be included
in
the body of the email. Only the attachment requires InfoPath to be
installed
on the recipient machine.
Now, as na alternative, you could generate HTML from your xml and
anyone
could open the read-only form with IE:
http://msdn.microsoft.com/library/d...tml/ipsdkUsingTheDownLevelTool_HV01081784.asp

Hope that it helps.

Regards,

Franck Dauché


:

I have built a form for a quote tool and I want to be able to send the
information entered in the form via email. The only catch is - I want
the
form to dump the information to a text format (not everyone I am
sending
it
to has infopath.) Is this even possible? if so, how? I've looked
everywhere.

troy
 
B

Bruno DUPUY

thanks a lot

Bruno


Franck Dauché said:
Yes, use: XDocument.View.Export(YouPath, "MHT");

Regards,

Franck

Bruno DUPUY said:
Hi,

thanks for your answer.

last question, is there a way to do by code "File / export to ... Web"
and
generate a mht ?

Bruno


"Franck Dauché" <[email protected].(nospamplease)> a écrit dans le
message
de news: [email protected]...
Hi Bruno,

Sure, in C# for example:
EmailAdapter oEmail =
(EmailAdapter)thisXDocument.DataAdapters["MyEmailConnectionReference"];
oEmail.Intro = thisXDocument.DOM.xml; //Form xml as E-mail body.
oEmail.Submit();

Regards,

Franck

:

Hi,

Very interesting. Is there a way to it (File \ Send to Email
Recipient)
by
code, within Infopath?



"Franck Dauché" <[email protected].(nospamplease)> a écrit dans le
message
de news: [email protected]...
Hi,

If you go to File \ Send to Email Recipient, the form will be
included
in
the body of the email. Only the attachment requires InfoPath to be
installed
on the recipient machine.
Now, as na alternative, you could generate HTML from your xml and
anyone
could open the read-only form with IE:
http://msdn.microsoft.com/library/d...tml/ipsdkUsingTheDownLevelTool_HV01081784.asp

Hope that it helps.

Regards,

Franck Dauché


:

I have built a form for a quote tool and I want to be able to send
the
information entered in the form via email. The only catch is - I
want
the
form to dump the information to a text format (not everyone I am
sending
it
to has infopath.) Is this even possible? if so, how? I've looked
everywhere.

troy
 
Top