'Get recipients from Email Group'

def get_recipients(self):

    recipients_list = []
    for email_group in get_email_groups(self.name):
        for d in frappe.db.get_all(u'Email    Group    Member', [u'email'], {u'unsubscribed': 0, u'email_group': email_group.email_group}):
            recipients_list.append(d.email)
    return list(set(recipients_list))
