This is my web.config mail settings:
web.config
Set defaultCredentials="false", because when it's set to true, no credentials are used.