That is possible, but ‘Allow less secure apps’ must be enabled which seems like a difficult trade-off just to get email working…