Adding (.mht) files as an attachment - InfoPath Dev
in

InfoPath Dev

Adding (.mht) files as an attachment

Last post 03-23-2006 03:04 PM by atifbaba. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 03-21-2006 05:28 PM

    • atifbaba
    • Not Ranked
    • Joined on 03-21-2006
    • Australia
    • Posts 7

    Adding (.mht) files as an attachment

    Hi,

    Without using code, is it possible to create a (.mht) file of the form a user is working on and send it as an attachment in an e-mail message? I would like to perform these actions using a button.
  • 03-21-2006 07:33 PM In reply to

    Re: Adding (.mht) files as an attachment

    You can launch your form (not template), under the File menu
    -> Export To
    -> Web
    then in the Save as type, select Single File Web Page (*.mht, *.mhtml)

    Although, I think you still need to use code. Set your attachment file name to the .mht file you saved.

    EmailAdapter oEmail = (EmailAdapter)thisXDocument.DataAdapters["MailSubmit"];

    oEmail.To = "EmailAddress";
    oEmail.CC = "EmailAddress";
    oEmail.Subject = "Subject Line";
    oEmail.Intro = "Into Text";
    oEmail.AttachmentFileName = "Attachment Filename";

    oEmail.Submit();
    Stephanie Cantwell / Test Manager
    Qdabra® Software / Streamline data gathering to turn process into knowledge

  • 03-23-2006 03:04 PM In reply to

    • atifbaba
    • Not Ranked
    • Joined on 03-21-2006
    • Australia
    • Posts 7

    Re: Adding (.mht) files as an attachment

    Thanks for your solution mate.

    Cheers,
    Atif
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.