DownloadMail Plugin Question: Multiple email accounts
16 posts by 3 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: August 19, 2010 (RSS)
By affinitymc - August 18, 2010 - edited: August 18, 2010
I am now trying to figure out how to ensure that the body of the email message does not get posted twice, as plain text and html, even though the original email was sent as html.
Another puzzling side effect is that the two php files I am testing with (calgary.php and newsletterarchives.php) are ignoring the css class for hyperlinks and rendering hyperlinks as plain blue underlined, whereas the css file has the class as grey underlined, which renders okay on all the other pages on the site.
Re: [affinitymc] DownloadMail Plugin Question: Multiple email accounts
By affinitymc - August 19, 2010 - edited: August 19, 2010
Re: [affinitymc] DownloadMail Plugin Question: Multiple email accounts
By Jason - August 19, 2010
The plugin is quite secure. The code used to write any information to the database is "escaped" to prevent SQL insertion attacks.
If you're worried about javascript being inserted into your HTML message, you can strip it out when you display it using code like this:
echo preg_replace('@<script[^>]*?>.*?</script>@si', '',$record['html']);
Hope this helps
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
I assume that this code gets inserted just before:
<?php echo $record['html'] ?>
and is surrounded by its own <?php...?>
Thanks
Brian
Re: [affinitymc] DownloadMail Plugin Question: Multiple email accounts
By Jason - August 19, 2010
All you need is this code:
echo preg_replace('@<script[^>]*?>.*?</script>@si', '',$record['html']);
It will strip any <script> tags out of $record['html'] and then echo the results.
Hope this helps.
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/