added email function (static)