Mono Support EnableSmtpSSL ignored by contact form 

Viewed 36621 time(s), 4 post(s), 6/7/2016 5:33:53 PM - by Zoomicon
6/7/2016 5:41:59 PM
2793 Reputation 345 Total posts

  regarding this web.config setting:

    <!-- flag if SSL is enabled while sending an e-mail portal wide -->
      <add key="EnableSmtpSSL" value="false" />

seems that if one sets EnableSmtpSSL to true and then set their SMTP settings to connect to a local SMTP relay (say using the instructions at http://www.vsysad.com/2014/01/configure-iis-smtp-server-to-use-gmail-to-forward-messages/)

      <mailSettings>
        <smtp deliveryMethod="Network" from="xx@gmail.com">
          <network
            defaultCredentials="false"
            host="xxxxx.com"
            port="25"
            />
        </smtp>
      </mailSettings>

then the contact form WORKS, but the activation e-mail (and other email notifications) FAIL (when the local relay has been set to accept connections via Anonymous Authentication) with "System.Net.Mail.SmtpException: Server does not support secure connections."

turning that EnableSmtpSSL to false makes ALL work (both contact form and other e-mail actions)

so it seems the contact form IGNORES EnableSmtpSSL setting and uses false? Then obviously if the SMTP server requires SSL the contact form will fail?

for example I was trying to send to smtp.gmail.com using 587 port and having set that google acount (at account settings, not at gmail settings) to "allow less secure apps to connect"), but still the contact form was failing, whereas via the relay it works fine and sends to gmail (the relay takes care of it of course)




1
6/8/2016 9:42:30 PM
144 Reputation 22 Total posts

Hi Zoomicon,

We will investigate this issue.
Which version of MonoX are you using ?

Best regards,
slaven

2
6/8/2016 9:52:43 PM
2793 Reputation 345 Total posts

it's version
MonoX v4.9.40.4845 [12/25/2013], DB v4.7.3842

3
6/10/2016 1:44:10 PM
2793 Reputation 345 Total posts

btw, if others see this post and set up local SMTP mail relay (to send to Gmail or elsewhere), make sure you set SMTP service to Startup type Automatic, else at reboot the relays will stop

4
This is a demo site for MonoX. Please visit Mono Software for more info.