In the MailPress template _loop.php I am trying to get the userID to built a personal link for another application. I am using the following code, which works fine if there is only 1 subscriber.
<?php
$email = $this->args->toemail; // current email
$uid = MP_Users::get_id_by_email($email); // get UserID
?>
How to change it so it works in the loop for multiple subscribers?