Sending HTML Mailer With SWF

Discussion in 'C#' started by cancer10, Nov 8, 2006.

  1. #1
    Hi,

    I am trying to send the following HTML mail thru the ASP CDO component.

    This is the HTML mail i wanna send from Page 1:
    <div align="center">
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><div align="center">
              <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="820" height="540">
                <param name="movie" value="http://mywebsite.com/movie1.swf">
                <param name="quality" value="high">
                <embed src="http://mywebsite.com/movie1.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="820" height="540"></embed></object>
            </div></td>
        </tr>
      </table>
    </div>
    Code (markup):

    This the the code of the second page which sends the mail.
    <%
    Set myMail=CreateObject("CDO.Message")
    myMail.Subject="Sending email with CDO"
    myMail.From="mymail@mydomain.com"
    myMail.To="someone@somedomain.com"
    myMail.HTMLBody = request.form("txtmessage") 
    myMail.Send
    set myMail=nothing
    %>
    Code (markup):


    My mail contains absolute path of the the SWF file, but the problem is when I receive the mail (tested with Gmail, yahoomail etc) I get a blank email with absolutely nothing in it.

    I have tested the mail with only HTML hyperlinks and it works but not with an embedd SWF file :(


    Any idea how to make it work?


    Thanx
     
    cancer10, Nov 8, 2006 IP
  2. JEET

    JEET Notable Member

    Messages:
    3,832
    Likes Received:
    502
    Best Answers:
    19
    Trophy Points:
    265
    #2
    I think the problem is with email clients, not your script.
    I don't use yahoo, but the email service I use doesn't display images or flash by default. I have to click a link to see any images which are sent in the email.
    May be something similar is happenning in your case as well.
    Bye :)
     
    JEET, Nov 9, 2006 IP
  3. cancer10

    cancer10 Guest

    Messages:
    364
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I tried almost all email providers but no luck :(
     
    cancer10, Nov 9, 2006 IP
  4. Free Born John

    Free Born John Guest

    Messages:
    111
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Free Born John, Nov 9, 2006 IP
  5. nsmchris

    nsmchris Active Member

    Messages:
    350
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    68
    #5
    you may want to check out cross domain security restrictions with flash. If you are using a web email client, it definitely will not show up in new versions of the flash player. You can not embed flash on one server and use from another (unless you setup a crossdomain.xml on your site). If you are viewing the email locally, it may work, but you will probably get the ActiveX popup.

    Chris...
     
    nsmchris, Nov 9, 2006 IP
  6. ccoonen

    ccoonen Well-Known Member

    Messages:
    1,606
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    160
    #6
    also - when embedding Flash - embed with JS or Satay because of IE's Ebola Virus ;)
     
    ccoonen, Nov 10, 2006 IP