updated email plugin