Hi.
I'm having a big problem when sending html email containing a link to a flash file. $ecard contains the value: http://www.forrealty.net/ecards/farm_1_one.swf . Here's the html code that goes in the email:
$msg = qq(<html><body><center><table border="0" cellspacing="1" cellpa
+dding="0">
<tr><td><center><img src="$photo"><br><font size="2">
<b>$FORM{'agtname'}<br>
$FORM{'company'}<br>
Phone:</b>
$FORM{'pnum'}
<p>Click here to visit my web site:<br>
<a href="$FORM{'website'}" target="_blank">$FORM{'website'}</a></font>
+</center></td>
<td><td><td><center>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/sw
+flash.cab#3,0,0,0"
width="424" height="402"><param name="SRC" value="$ecard">
<embed src="$ecard"
pluginspage="http://www.macromedia.com/shockwave/download/" type="ap
+plication/x-shockwave-flash" width="424" height="402">
</embed></object>
</center></td></tr></table><br>
<font size="2"><b>AOL Users:</b>
<a href="$ecard" target="_blank">
Click here if you can't see the ecard above.
</a></font></center>
<p>$body</body></html>);
What happens is that when it outputs the email, the link saying "Click here if you..." gets corrupted. It adds an exclamation mark (!) to the link and messes up the whole url. This only happens though, if the 'Click here...' link is the same as the link of the flash file that gets displayed in the email. For some really weird reason, it can't have the same link twice in the email!
Does anybody know how to fix this problem?
Thanks,
Ralph :)
2001-09-17 Edit by Corion: Added CODE tags and reformatted the HTML (it was on one line previously)
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.