I'm using C# and on my IIS I'm sending smtp messages (using local host) the server have a SSL certification when people browse to it (https) I wanted to improve the mail sending that is will be Send with SSL so I added this lines :
`client.Credentials = System.Net.CredentialCache.DefaultNetworkCredentials;`
`client.UseDefaultCredentials = true;`
`client.EnableSsl = true;`
just after creating the client:
var client = new System.Net.Mail.SmtpClient("127.0.0.1");
and before:
client.DeliveryMethod = SmtpDeliveryMethod.PickupDirectoryFromIis;
but now when I send the mails I get: "SSL must not be enabled for pickup-directory delivery methods"
Please help :)