Completing email functions