get email method.