email API added