added smtp email compatibility