PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

GF as email to group members

  1. Using GF is it possible to create a form that allows sending emails to registered members?

    The form would consist of:
    1, To field - selectable from list of registered members
    2, Subject
    3, Message

    Obviously 2 and 3 are straightforward but I'm struggling with 1.
    Would the user registration add-on be useful for this?

    TIA.

    Posted 12 years ago on Monday August 15, 2011 | Permalink
  2. This would be possible but the To Field you mention isn't going to be something Gravity Forms can do out of the box.

    You'd have to add a Drop Down to your form and then use custom code to populate that drop down so that the Label is the persons name and the Value is the persons email address. Here is a tutorial on how to dynamically populate a drop down:

    http://www.gravityhelp.com/documentation/page/Dynamically_Populating_Drop_Down_Fields

    Please note that tutorial isn't going to help you with getting the user information, you'd have to write that code. It only shows you how to populate a drop down dynamically.

    You could then configure your notification to use the value of that drop down selection as the Send To.

    So what you want to do is possible. But requires customizations.

    Posted 12 years ago on Monday August 15, 2011 | Permalink
  3. vixvii
    Member

    I would like to do something similar, but I would like to send a single message to several email addresses. I have several registered users, but they all register for different reasons, so I would like to send a message to only one group of users. I can filter through the data and get the required email addresses, I was just wondering how I can use GF to send the notification email to all those addresses.

    Could I populate a single Email field with all the email addresses separated by a semi-colon?
    Will the User Notification then use the email field as the "To" email address or can this only be a single value?

    Or is there a better way?

    Thanks

    Posted 12 years ago on Wednesday August 17, 2011 | Permalink
  4. You could populate multiple email addresses in the Send To field and separate them by a comma (not a semi-colon) with no space between the comma and the next email. You could also use the BCC field in the Notifications to do the same. Another option is to use the Routing feature of the Admin Notification for the Send To which lets you send to a specific email address based on a field selection.

    Posted 12 years ago on Wednesday August 17, 2011 | Permalink
  5. vixvii
    Member

    Thanks Carl,

    I was thinking of the BCC field so that I don't give out email addresses to the wrongpeople, but I'm not sure Routing would work because it is always different amounts of email addresses. I will have a drop down box listing options like "All Teams in my area" - when selected I will collect all email addresses that is relevant to the selection.

    After some thinking it might be easier to just send the mail with plain php and just use GF as the interface...

    Thanks again!

    Posted 12 years ago on Thursday August 18, 2011 | Permalink

This topic has been resolved and has been closed to new replies.