Add localhost as email host, remove outdated code from views