Your code is using angled quotes instead of standard double quotes. That could be the issue.
also you shouldn't have that extra space inside the brackets. So for instance:
$RecipArray[$CurIndex ] = “firstname.lastname@example.org”;
$RecipArray[$CurIndex] = "email@example.com";