Skip to content

Instantly share code, notes, and snippets.

@john-henry
Created April 18, 2012 14:04
Show Gist options
  • Save john-henry/2413811 to your computer and use it in GitHub Desktop.
Save john-henry/2413811 to your computer and use it in GitHub Desktop.
Send emails from MX Notify if manually validating ExpressionEngine members
function cp_members_validate_members($member_id)
{
$site_settings = $this->settings[SITE_ID];
$memberArray = $_POST['toggle'];
foreach ($site_settings['row_order'] as $key => $value)
{
$iRow = $value;
if ($site_settings["trigger_" . $iRow] == '2')
{
foreach ($memberArray as $key1 => $value1)
{
$result = $this->EE->db->query("SELECT *
FROM exp_members
WHERE member_id = '" . $value1 . "'");
if ($result->num_rows() > 0)
{
foreach ($result->result_array() as $row)
{
$edata = $row;
}
$this->first_email_send($edata, $member_id, $iRow);
}
}
}
}
return TRUE;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment