title: embed swf file into email and send in C#
body: <p>I have .net user control which will send email on click of button. Now, in email I want to send swf file embeded into the email. following is the code. But it does not show swf file in email.</p>
  
  <pre><code>protected void btnSubmit_Click(object sender, EventArgs e)
      {
          string body = "Dear Balvignan Team,\r\n\r\n";
  
          if (txtComment.Text != null)
          {
              body = body + "Comment: " + txtComment.Text;
          }
  
          body=body + "&lt;object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' ";
          body=body + "codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='425' height='300' align='middle'&gt;";
          body=body+ "&lt;param name='movie' value='http://mydomain.com/images/ecards/CardCreative629.swf' /&gt;";
          body=body + "&lt;param name='quality' value='high' /&gt;";
          body=body +  "&lt;param name='wmode' value='opaque' /&gt;";
          body = body + "&lt;embed src='http://mydomain.com/images/ecards/CardCreative629.swf' width='425' height='300' align='middle' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' wmode='opaque'  &gt;&lt;/embed&gt;";
          body = body + "&lt;/object&gt;";
          if (SendEmail(txtEmail.Text.Trim(), "Comment", body, true) == true)
          {
  
              lblContactAcknowledge.Text = "Thank You For &lt;br /&gt;Submitting comment.";
  
              lblContactAcknowledge.Visible = true;
              PnlTalkToUs.Visible = false;
          }
          else
          {
              lblContactAcknowledge.Visible = false;
              PnlTalkToUs.Visible = true;
          }
      }
  </code></pre>
  
  <p>SendEmail(string From, string Subject, string Message, bool IsHTML) is function which sends email.</p>