go to post Jacopo Magliani · Nov 4 Thank you for the response.It appears the t and p reversed was just a typo error, in the production I had set the correct names.If I try to set the secure property of the server to STARTTLS I obtain an error related to the property does not exist, this is why I had commented it in the code aboce