Sending an e-mail via VBScript code - InfoPath Dev
in

InfoPath Dev

Sending an e-mail via VBScript code

Last post 03-26-2009 06:06 AM by kminor. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 03-25-2009 07:33 PM

    Sending an e-mail via VBScript code

    Hi, everyone.  I'm new here and new to InfoPath as well.  I'm finishing up my first form, and I've got some VBScript validation code that runs when the user clicks a submit button.  I want that code to run before it e-mails the form.  I cannot, for the life of me, figure out how to do this!  I've come across the MailMessage code on here but can't get it to work.  It doesn't like "System", and I can't find where to reference it.

     After I get the code to e-mail, I need to have the data save to Access or some other queryable data source.  But I'm not even worried about that at this point.

     Thanks in advance for your help!

    -- Kelley
  • 03-25-2009 10:07 PM In reply to

    • Anuma
    • Top 25 Contributor
      Female
    • Joined on 07-20-2005
    • India
    • Posts 525

    Re: Sending an e-mail via VBScript code

    Anuma Chinthapalli /
    http://www.GGKTech.com
  • 03-26-2009 06:06 AM In reply to

    Re: Sending an e-mail via VBScript code

    Thank you for that link, Anuma!  It's one I didn't come across when I was searching last night.

     I tried the first function, and it worked.  Is it possible to have the code send the message without showing the message window?  Also, how can I control what the attachment is named?  I don't see any code regarding an attachment, so I'm assuming it's added as part of the ShowMailItem method?

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