string email = project.Variables["email"].Value.Substring(project.Variables["email"].Value.IndexOf('@') + 1);
//uncomment for debugging
//return email;
switch (email)
{
case "gmail.com":
return "gmail";
break;
case "outlook.com":
return "outlook";
break;
default:
return "bad email";
}