hrnyc
February 8th, 2005, 02:15 PM
hi guys.
I want to send a HTML email via PHP that contains swf(flash) content.
But when I send it and receive it by the email client (outlook / thunderbird)
i can't see the swf but client shows the text part:"hello there..."
This is the PHP code which sends email:
"mailsend.php"
-------------------------------------------------------------------------
<?php
$root="http://www.mywebsite.com/dnm/";
$url=$root."pattern.php";
$eposta="auser@adomain.com";
$dosya=file("$url");
$mesaj=join("",$dosya);
mail ($eposta,'mailinf subject', $mesaj,"From: youradmin <noreply@mywebsite.com>\nMIME-Version: 1.0\nContent-Type:text/html ; charset=iso-8859-9\n");
echo "mail has been sent...";
?>
------------------------------------------------------------------------
and this is my HTML code. I attach this to my email.
"pattern.php"
-------------------------------------------------------------------------<html>
<head>
<style type="text/css">
<!--
.style2 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-style: italic;
}
-->
</style>
</head>
<body>
<p>
<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="400" height="75">
<param name="movie" value="http://www.mywebsite.com/dnm/hrnyc_1.swf">
<param name="quality" value="high">
<embed src="http://www.mywebsite.com/dnm/hrnyc_1.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="400" height="75"></embed>
</object>
</p>
<p class="style2">hello there...</p>
</body>
</html>
--------------------------------------------------------------------------
Thanks. :)
I want to send a HTML email via PHP that contains swf(flash) content.
But when I send it and receive it by the email client (outlook / thunderbird)
i can't see the swf but client shows the text part:"hello there..."
This is the PHP code which sends email:
"mailsend.php"
-------------------------------------------------------------------------
<?php
$root="http://www.mywebsite.com/dnm/";
$url=$root."pattern.php";
$eposta="auser@adomain.com";
$dosya=file("$url");
$mesaj=join("",$dosya);
mail ($eposta,'mailinf subject', $mesaj,"From: youradmin <noreply@mywebsite.com>\nMIME-Version: 1.0\nContent-Type:text/html ; charset=iso-8859-9\n");
echo "mail has been sent...";
?>
------------------------------------------------------------------------
and this is my HTML code. I attach this to my email.
"pattern.php"
-------------------------------------------------------------------------<html>
<head>
<style type="text/css">
<!--
.style2 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-style: italic;
}
-->
</style>
</head>
<body>
<p>
<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="400" height="75">
<param name="movie" value="http://www.mywebsite.com/dnm/hrnyc_1.swf">
<param name="quality" value="high">
<embed src="http://www.mywebsite.com/dnm/hrnyc_1.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="400" height="75"></embed>
</object>
</p>
<p class="style2">hello there...</p>
</body>
</html>
--------------------------------------------------------------------------
Thanks. :)