I'd like to be able to auto-populate the To section. The list of email addresses would come from a lookup from an external source (ie. list of friends on a social network site who are not members). What's the best way to do this?

Comments

tgaff2x’s picture

Status: Active » Closed (won't fix)

I figured out a solution on my end. Not sure if it's the best approach, but it works for my current purposes. I was originally looking for more of an API type solution where I could call the module directly with additional values. I couldn't get that to work, so I wound up with the following:

1. created a block that only appears on the invite page
2. the block checks to see how the invite page was called and the user who called it
3. based on the above, it makes a call to the database to get a list of email addresses
4. it then executes some JS to update the edit-email field of the form

on to the next one....