title: SSIS variable as message source in send mail task
body: <p>I am trying to use a global variable value as the message source for a Send Mail Task in SSIS.</p>
  
  <p>I am using some of the system variables like @[System::PackageName] and @[System::TaskName] to build a message when the task succeeds or fails, but unfortunately, the message source value doesn't get populated with anything when I execute the task.</p>
  
  <p>Can someone please tell me how I can get this to work?</p>
  
  <p>Sample code below</p>
  
  <pre><code>"Package: " + (DT_WSTR, 50) @[System::PackageName] + " executed at " + (DT_WSTR, 30) @[System::StartTime] + " on " + "Task: "+ (DT_WSTR, 60) @[System::TaskName]
  </code></pre>
  
  <p>Thanks</p>