Email saying undefined and with no content