title: Encrypt mailSettings in Web.config
body: <p>i want to ask about to encrypt mailSettings section under system.net</p>
  
  <p><a href="https://i.stack.imgur.com/TA92P.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TA92P.png" alt="enter image description here"></a></p>
  
  <p>but, when i try to encrypt by cmd.exe it seems that they cannot find mailSettings</p>
  
  <p><a href="https://i.stack.imgur.com/ReyfZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ReyfZ.png" alt="enter image description here"></a></p>
  
  <p>i use this script</p>
  
  <p>"aspnet_regiis.exe -pef "mailSettings" "D:\website" -prov ConnectionTestProvider"</p>
  
  <p>can someone help me to encrypt this part?</p>