1
Vote

email system does not work with SSL mail

description

I'm not able to use this project with gmail. Perhaps some calls could be made to read the web.config. If ssl mail is enabled, the send mail methods could set client.EnableSsl to true.

comments

thshdw wrote Jan 9, 2014 at 2:37 AM

I downloaded the source code and made some changes to make this work for me.

If you want to use gmail as the email system all you need to do is...
  1. Downloaded the patches
  2. Add a Reference System.configuration
    this is needed so the web.config can be read.
  3. Modify the web.config. In <appSettings> Set key"UseSSLForSMTP" to a value of true then at the bottom of the web.config set your correct gmail smtp settings.
In all the locations where email is sent is this logic.
string UseSSLForSMTP = ConfigurationManager.AppSettings["UseSSLForSMTP"];
        if (UseSSLForSMTP == "true")
        {
            client.EnableSsl = true;
        }

thshdw wrote Jan 9, 2014 at 5:44 PM

I was looking at SpiderMaster.AspNet.ExceptionManagement.XML and found
  <member name="P:SpiderMaster.AspNet.Providers.CommunityHttpExceptionProviderConfiguration.EnableSsl">
        <summary> Gets a value that determines if the smtp server configured requires ssl to be enabled.
        </summary>
    </member>
Is that programmed? I could not find any references to HttpExceptionProviderConfiguration in any of the *.cs files.