Your server does not support SSL on the default port; Most will not.
When you disable SSL, you will receive the message: “A secure connection is required for the SMTP server or the client failed authentication. Server response: 5.7.1 The client was not authenticated”
This tells you that you are not authenticated. Also, you said in a comment: "Because if I set UseDefaultCredentials = true and used my own user address in the" from "address, I can send the email successfully."
This is apparently a problem with setting up the SMTP server. You will need to obtain the appropriate credentials or install an SMTP server to allow sending mail from the web server.
source share