Posted on: 4/11/2015 11:15:52 PM | Views : 747

Hello
I am not able to load one of my Web pages - the one that holds the contact form. The error I get is:  EnableSsl = True.   'EnableSsl' is not declared. It may be inaccessible due to its protection level.
It refers to the bottom line in my contact.aspx.vb file:
Smtpserver.DeliveryMethod = SmtpDeliveryMethod.Network Smtpserver.Host = ("mail.server") 'Smtpserver.Host = System.Configuration.ConfigurationManager() Smtpserver.Port = 25 EnableSsl = True I also have that same line in my Web.config file which does not give me an error:
<smtp> <network host="server_name" password="password" port="25" defaultCredentials="true" enableSsl="true" /> </smtp>< ...

Go to the complete details ...