The web.config file contains the settings for the SMTP server used to send emails from iMIS. The iMIS documentation says:
In the <network> element declaration, you can also specify port and authentication information for your SMTP server to ensure that iMIS can find and log onto to the SMTP server in your environment. For details, refer to your Microsoft ASP.NET documentation.
(emphasis added)
But Microsoft's documentation on MSDN for the <mailSettings> element is weak, with no details provided on the possible options. In particular, you may need to set Enable SSL to true.
Further googling reveals that you can't set Enable SSL to true via <mailSettings>. It's not possible until .NET 4.0. But that same page, under the Workarounds tab reveals the method for setting it:
Set the EnableSsl property "programmatically" and store the value for example in AppSettings. Not handy, but what ever.
So here's an example of the attributes needed for email to an SMTP server requiring SSL:
<network host="smtp.mydomain.com" defaultCredentials="false" userName="myuser@mydomain.com" password="xxxx" port="587">
Then down near the bottom of the web.config file in the appSettings, add this line:
<add key="SmtpClient.EnableSsl" value = "true"/>
Attributes are case sensitive.
And here's an alternative to sending out to an SMTP server when you're testing or demoing.
Comments