Fix typo of dict association character.
Add missing socket import.
Add missing '--' from option for email from.