safe email handling