Update email method to use API