From 141eb8a497d847069cf87ce0d204614596338352 Mon Sep 17 00:00:00 2001 From: svncommit Date: Fri, 21 May 2010 03:24:25 +0000 Subject: Fix double-addition of e-mail domain to content ID in HTML images --- program/steps/mail/sendmail.inc | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'program/steps') diff --git a/program/steps/mail/sendmail.inc b/program/steps/mail/sendmail.inc index 2576a66b5..dedab99fa 100644 --- a/program/steps/mail/sendmail.inc +++ b/program/steps/mail/sendmail.inc @@ -95,18 +95,14 @@ function rcmail_get_identity($id) /** * go from this: - * Cool + * Cool * * to this: * - * + * Cool * ... - * ------part... - * Content-Type: image/gif - * Content-Transfer-Encoding: base64 - * Content-ID: */ -function rcmail_attach_emoticons(&$mime_message) +function rcmail_fix_emoticon_paths(&$mime_message) { global $CONFIG; @@ -437,8 +433,9 @@ if ($isHtml) { $plugin = $RCMAIL->plugins->exec_hook('outgoing_message_body', array('body' => $plainTextPart, 'type' => 'alternative', 'message' => $MAIL_MIME)); $MAIL_MIME->setTXTBody($plugin['body']); - // look for "emoticon" images from TinyMCE and copy into message as attachments - $message_body = rcmail_attach_emoticons($MAIL_MIME); + // look for "emoticon" images from TinyMCE and change their src paths to + // be file paths on the server instead of URL paths. + $message_body = rcmail_fix_emoticon_paths($MAIL_MIME); } else { if ($footer) -- cgit v1.2.3