title: Send mail with "do not forward" restriction
body: <p>When I try to update "do not forward" restriction mail with <code>oMail.Permission = olDoNotForward</code>, I am getting this error.</p>
  
  <p><a href="https://i.stack.imgur.com/GJnby.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GJnby.png" alt="enter image description here"></a></p>
  
  <blockquote>
    <p>We are not able to find the Information Rights Management template. Please contact your administrator.</p>
  </blockquote>
  
  <p>The VBA function to send mail:</p>
  
  <pre><code>Function MailDraftSurvey(ByVal mailName As String, _
    ByVal mailFrom As String, ByVal mailTo As String, _
    ByVal mailCC As String, ByVal mailSubject As String, _
    ByVal SendMail As Boolean)
  
  Dim objOL As Outlook.Application
  Dim oMail As Outlook.MailItem
  Dim msg As Object
  Dim Mailpath As Variant
  Dim i As Integer
  
  Set objOL = CreateObject("Outlook.Application")
  Mailpath = ThisWorkbook.path &amp; "\Mail Template\" &amp; mailName
  
  'to create a new Outlook item using object
  'Set myItem = Application.CreateItem(olMailItem)
  
  Set oMail = objOL.CreateItemFromTemplate(Mailpath)
  oMail.SentOnBehalfOfName = mailFrom
  oMail.To = mailTo
  oMail.CC = mailCC
  oMail.Subject = mailSubject
  
  oMail.Permission = olDoNotForward
  
  'Check to Send or Display mail
  If SendMail = True Then
      oMail.Send
  Else
      oMail.Display
  End If
  End Function
  </code></pre>