Added email back-end function