Index: branches/5.2.x/core/kernel/utility/email_send.php =================================================================== diff -u -N -r16199 -r16362 --- branches/5.2.x/core/kernel/utility/email_send.php (.../email_send.php) (revision 16199) +++ branches/5.2.x/core/kernel/utility/email_send.php (.../email_send.php) (revision 16362) @@ -1,6 +1,6 @@ parts as $part ) { + if ( $part === $part_definition ) { + return true; + } + } + + return false; + } + + /** * Returns text version of HTML document * * @param string $html @@ -780,6 +798,11 @@ } $definition =& $this->GetFileDefinition($definition); + + if ( $this->HasPart($definition) ) { + return false; + } + $part_number = $this->AddPart($definition); if ($inline) {