[BNM] sending email from php to gmail including sample javascript code
AndrewGill73@gmail.com
andrewgill73 at gmail.com
Mon Jul 6 14:29:22 BST 2009
Hi BNM'ers,
I'd like to send an email from PHP that includes some sample javascript
code.
I don't want to run the javascript code, just allow the user to copy & paste
the javascript code into their website. Example code below:
<script src='http://www.abc.co.uk/47?txt=test&ht=50&bdc=000000&cbc=7195FF
'></script>
The problem is that Gmail won't display the code - it is received but this
section is not displayed in gmail. I've tried the following without success:
- <code>my script </code>
- <pre>my script </pre>
- <xmp>my script </xmp> (now defunct)
- Encoding the script.
I'm sending as Mime-version 1.0 and charset=iso-8859-1.
Any ideas? Much appreciated.
cheers,
Andy Gill
www.ChatBadge.com
More information about the BNMlist
mailing list. Powered by Wessex Networks