title: What are the prerequisites for installing CDO.DLL in Windows Server 2012 for VB application
body: <p>I am upgrading a server from Windows 2003 to 2012 R2. 
  One of our VB6 applications used CDO.dll for MAPI, i.e. for sending mails.</p>
  
  <p>My question is :</p>
  
  <ol>
  <li><p>How do I install/register CDO.DLL?</p></li>
  <li><p>What are the prerequisites for installing CDO.DLL?</p></li>
  <li><p>Do I need to install Outlook in my server for the application to send mail?</p></li>
  </ol>
  
  
  
  <pre><code>Set objMAPI = New MAPI.Session
  objMAPI.Logon ShowDialog:=False, NewSession:=False, ProfileInfo:=gobjINI.gstrExchangeServer &amp; vbLf &amp; gobjINI.gstrProfile
  'Add a new mesage to the OUtbo Messages Collection
  Set objMSG = objMAPI.Outbox.Messages.Add
  'Add the recipient list specified in INI File
  'Check if this is a multiple Recipient List (names or groups seperated by semicolons!)
  If InStr(1, Recipients, ";") Then
    objMSG.Recipients.AddMultiple Recipients, CdoTo
    objMSG.Recipients.Resolve
  Else
    'This section is for handling of single recipient name
    'Be aware that this may be an email group list name !
    Set objRecipients = objMSG.Recipients.Add(Recipients)
    objRecipients.Resolve
  End If
  
  'Add Subject Line, Message Content and Send Message
  objMSG.Subject = Subject
  objMSG.Text = Message
  
  'The Update method adds all our assignments to collecttion
  objMSG.Update
  
  'Now let's actually send the message
  objMSG.Send
  
  'End MAPI Session
  objMAPI.Logoff
  Set objMAPI = Nothing
  
  MailSend = True
  </code></pre>