How to modify Smtp configuration, sending fails causing a constant freeze