Create mailinglist from listbox? - InfoPath Dev
in

InfoPath Dev

Create mailinglist from listbox?

Last post 05-31-2006 08:08 AM by Matt Faus. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 05-31-2006 02:34 AM

    • Zeeker
    • Not Ranked
    • Joined on 05-29-2006
    • Sweden
    • Posts 4

    Create mailinglist from listbox?

    Hello,
    I have filtered data in a listbox containing emailaddresses.
    I want to uses these addresses to send an email to each of them.
    But I don't now how to do it. (the code for mailing is done).
    Can I merge a column into a string or maybe loop through the listbox items using code?

    Any suggestions are appreciated.
    Regards,
    Kim
  • 05-31-2006 05:09 AM In reply to

    • uma
    • Top 500 Contributor
    • Joined on 12-23-2005
    • Posts 35

    Re: Create mailinglist from listbox?

    Hi,

    Make one email list function which returns a string of all the email addresses(which you have as filtered data) which are separated by ";" instead of ","(I think, because, Email adapter will not accept the "," to separate the two mail id's). And use this string as a value for the Emailadapter.To to send a single mail to the group.

  • 05-31-2006 05:26 AM In reply to

    • Zeeker
    • Not Ranked
    • Joined on 05-29-2006
    • Sweden
    • Posts 4

    Re: Create mailinglist from listbox?

    Hello,
    Do you have suggestion on how to go get all addresses from the listbox into a string? (that's my main problem)
  • 05-31-2006 08:08 AM In reply to

    Re: Create mailinglist from listbox?

    Hi Kim,

    You can either right a little function and put it behind a button to do this, or use the more elegant solution presented by Ned at the InfoPath blog:
    http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=2236

    If you want to write the function, please search around the forum a little bit, I remember writing one for a post just like this.
    Matt Faus / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.