Send by EMail without dialogue - InfoPath Dev
in

InfoPath Dev

Send by EMail without dialogue

Last post 08-02-2012 08:03 AM by Hilary Stoupa. 8 replies.
Page 1 of 1 (9 items)
Sort Posts: Previous Next
  • 07-19-2012 04:35 AM

    Send by EMail without dialogue

    I have a big problem! )

    This code on VBS have a dialogue, but I want to send any form from my application-server without dialogue.

    set oApp = CreateObject("InfoPath.Application")
    oApp.XDocuments.NewFromSolution ("D:\infopath\exp\test.xsn")
    set objEmailAdapter = oApp.XDocuments(0).DataAdapters("email") objEmailAdapter.To = "[email protected]"
    objEmailAdapter.Intro = "intro"
    objEmailAdapter.Subject = "sybject"
    objEmailAdapter.AttachmentType = 1 'xdXmlXns
    objEmailAdapter.AttachmentFileName = "D:\infopath\exp\test.xsn"
    objEmailAdapter.Submit()
  • 07-31-2012 11:10 PM In reply to

    Send by EMail without dialogue

    Any body here?
  • 08-01-2012 08:41 AM In reply to

    Re: Send by EMail without dialogue

    Yup, but apparently no one has an answer for this.

    Hilary Stoupa

  • 08-01-2012 11:24 AM In reply to

    Re: Send by EMail without dialogue

     

     CAN ANY ONE HELP ME WITH THE BELOW ISSUE,, PLZ

     Hi, I created an email form from Infopath without connecting to a share point, Whenever user submit the form, I get an email to my inbox and immediately there will be an acknowledgement sent to the user by using script from my outlook, However, I need to send two different email & one is for the user who is submitting the form and other one should be picked it up from email form text box field. Here is the code that I am using to send an auto acknowledgement email,,

     Can anyone help me with the code to pull email ID from infopath email form submitted by users.???

     

    Sub SendNew(Item As Outlook.MailItem)

     
    Dim objMsg As MailItem


    Set objMsg = Application.CreateItemFromTemplate("XXXPath\Automated Email  .oft")
     
    objMsg.Recipients.Add Item.SenderEmailAddress
     
    objMsg.Send
     

    End Sub
  • 08-01-2012 11:27 AM In reply to

    Re: Send by EMail without dialogue

     

     NEED SOME ONE HELP IN THE BELOW ISSUE,, PLZ

     Hi, I created an email form from Infopath without connecting to a share point, Whenever user submit the form, I get an email to my inbox and immediately there will be an acknowledgement sent to the user by using script from my outlook, However, I need to send two different email & one is for the user who is submitting the form and other one should be picked it up from email form text box field. Here is the code that I am using to send an auto acknowledgement email,,

     Can anyone help me with the code to pull email ID from infopath email form submitted by users.???

     

    Sub SendNew(Item As Outlook.MailItem)

     
    Dim objMsg As MailItem


    Set objMsg = Application.CreateItemFromTemplate("XXXPath\Automated Email  .oft")
     
    objMsg.Recipients.Add Item.SenderEmailAddress
     
    objMsg.Send
     

    End Sub
  • 08-01-2012 02:32 PM In reply to

    Re: Send by EMail without dialogue

    I don't understand why you are trying to do this with code. Why not just use the built in email submit functionality?

    Hilary Stoupa

  • 08-01-2012 09:33 PM In reply to

    Re: Send by EMail without dialogue

    Hi, Hilary

    1. Creating form in InfoPath
    2. Filling some fields in my programm
    3. Sending this form to recipient
    4. Get answer from recipient, who used form in his local InfoPath for filling other fields
    5. Reading xml in my programm

    That is all for offline change data in my programm.

    P.S. Sory my English...
  • 08-01-2012 10:52 PM In reply to

    Re: Send by EMail without dialogue

    Yes You're right Hilary, I used the in build function in submit button, it triggers the email to me,,

    However, The code I written is to send out the automatic response to user who is submitting the form with different content in the email. This code, I have written in my outlook VB A,

    Similarly, I need to send another email with different content. The email address should be picked it up from info path email form field.

    Step 1: Basically, the user sends a request to me by filling the info path email form.

    Step 2: Once he/she submits the request,  I receive it an email and also they get an auto acknowledgement email/response from my outlook based on the code that I written.

    Step 3: After, my job is to pick up the email ID from info path email form field (Text Box Value) submitted by the user and send an email to that email ID and asking for further information.

     

     

  • 08-02-2012 08:03 AM In reply to

    Re: Send by EMail without dialogue

    Sorry - I don't work with VBA / Outlook much. I am really not sure how you would do this. Hopefully someone else will be able to assist you.

    Hilary Stoupa

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