Results 1 to 4 of 4

Thread: Cannot Embed Multiple Images with FCKEditor

  1. #1
    peterw98 is offline Junior Member
    Join Date
    Jun 2007
    Posts
    2

    Post Cannot Embed Multiple Images with FCKEditor

    When creating an email template, I'm embedding images using the "Attachments" section, uploading an image and then clicking the "Embed" icon. For some reason, only the first image that I embed will display in the email. All of the images display in the FCKEditor preview. Also, I can add the first image multiple times within the same template and it will always display in the email, but none of the other images will display. Please help.

  2. #2
    casperl is offline Junior Member
    Join Date
    Jun 2007
    Posts
    4

    Default Re: Cannot Embed Multiple Images with FCKEditor

    Yes, I can confirm this is happening in 4.5.1 (Open Source)

    I can also explain what is happening. The manual states that in order to create an embedded graphic you 1) attach an image and 2) click on the paperclip icon next to the image.

    This works for as many images as you may want to attach.

    Onscreen in SugarCRM everything is fine.

    However in the destination email only the first embedded email appears, yet all the attachments are there.

    Upon viewing the source I can confirm the line describing the base64 attachement is absent in the Sugar CRM sent images except for the first image where it is present:

    Content-ID: Whatever_the_filename
    I can also confirm that manually copying this email source in an editor and adding a Content ID: clause and saving that output as an .eml file, creates a correct email file that opens in Outlook Express and can be sent.

    That was the first bug.

    The second bug is that in the above example I had one template, two images, both as embedded. However in the destination output of that sent message there were no less than 4 base64 attachments. Two were the attachments, one was the second image duplicated and of course one was the first image with the correct Content-ID tag.

    Thus, the attachments are duplicated and your email message is effectively twice as large.

    Now, if there was a way to actually manually fix this I could use SugarCRM for sending embedded images, unfortunately I could not find a workaround. I looked at the email_templates table, but that is not going to work. In fact would anyone know where the attachments to an email template is stored - which table that is?

  3. #3
    peterw98 is offline Junior Member
    Join Date
    Jun 2007
    Posts
    2

    Default Re: Cannot Embed Multiple Images with FCKEditor

    Thanks for the response. I was able to fix the problem by removing the cid and adding the absolute url to the source html.

    Original Source HTML: <p><img alt="" src="cid:image_file_name.jpg" /><img alt="" src="/images_folder/image_file_name.jpg" />&nbsp;</p>

    Modified Source HTML: <p><img alt="" src="http://www.mywebsite.com/images_folder/image_file_name.jpg" />&nbsp;</p>

    As for the duplication of attachments, did you remove the attachements before you sent the email? After you embed the images, check the remove attachments box(es) and save the template. The source remains the same and the images are no longer sent as attachements with the email in addition to being embedded.

  4. #4
    fitumph is offline Junior Member
    Join Date
    Jan 2008
    Posts
    2

    Default Re: Cannot Embed Multiple Images with FCKEditor


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Dangers with Multiple Select Fields Part 1 - Editing
    By neilt in forum Feature Requests
    Replies: 1
    Last Post: 2011-09-27, 09:58 PM
  2. Replies: 3
    Last Post: 2007-06-18, 10:06 PM
  3. Replies: 0
    Last Post: 2007-06-16, 02:20 PM
  4. FCKeditor images
    By duncanbrown in forum Help
    Replies: 4
    Last Post: 2007-02-12, 05:24 PM
  5. FCKeditor problem with uploading images
    By solidcam in forum Help
    Replies: 12
    Last Post: 2006-12-18, 09:21 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •