title: Automatic mail generation using cocoa
body: <p>I couldn't understand this code so clearly as i'm new to cocoa. So can anyone please explain me this piece of code? Thanks in advance</p>
  
  <pre><code>NSString *emailString = [NSString stringWithFormat:@"\
                       tell application \"Mail\"\n\
                       set newMessage to make new outgoing message with properties {subject:\"%@\", content:\"%@\" &amp; return} \n\
                       tell newMessage\n\
                       set visible to false\n\
                       set sender to \"%@\"\n\
                       make new to recipient at end of to recipients with properties {name:\"%@\", address:\"%@\"}\n\
                       tell content\n\
                       ",subject, bodyText, @"McAlarm alert", @"McAlarm User", toAddress ];
  </code></pre>