Email introduction field - InfoPath Dev
in

InfoPath Dev

Email introduction field

Last post 11-22-2005 06:37 AM by Coita Thierry. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 11-22-2005 05:41 AM

    Email introduction field

    Is there anyway to set the email introducion field using information from text boxes on the form? It seems that if there is a way, you would have to set the field using code.

  • 11-22-2005 06:37 AM In reply to

    Re: Email introduction field

    Hi,

    Welcome on board!

    After you create the connection (email), write the following code in your onclick event (C#)

    EmailAdapter oEmail = (EmailAdapter)thisXDocument.DataAdapters["EmailConnectionName"];
    oEmail.To = sToAddress;
    oEmail.CC = sCCAddress;
    oEmail.Subject ="Subject, What ever you want";
    oEmail.Intro = "s filled form of XY.xsn has been filled out. You can find it under X:\shared\formsXY\" + link;

    oEmail.Submit();

    ++

    Thierry

    P.S. Next time make a little search on the forum before post! The search button for the forum is in the right corner not left (left search is only website content)! Thanks a lot
    Infopath 2007, Langage: C#2.0 (Modèle Objet 2003)
    merci de lire ceci
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.