Problem with Images in E-Mail Body

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tobias
    Senior Member
    • May 2016
    • 229

    Problem with Images in E-Mail Body

    Hi there,

    Right now, images in e-mails are not loaded. Instead, a question mark is shown - see screenshot attached.

    In addition, when trying to reply to such e-mails, we see the following errors in the logs:

    Code:
    [2019-02-20 06:53:45] Espo.ERROR: API [POST]:/:controller, Params:Array (     [controller] => Email ) , InputData: {"status":"Sending","isHtml":true,"name":"Re: subject","to":"xx@xx.com","parentId":"5c6cf3fe2414886a9","parentName":"subject","parentType":"Case","teamsIds":["57aadafb8b7536bb7","57aadb3fdb83f3bc6"],"teamsNames":{"57aadafb8b7536bb7":"Sales","57aad
    b3fdb83f3bc6":"xx"},"nameHash":{"xx@xx.com":"xxx","xx@xx.com":"xx"},"repliedId":"5c6cf3f8b3ed95336","inReplyTo":"<8EE3C3D8-8AFE-4FDF-9D9B-76853
    93D6268@xx.com>","body":"<p>Test</p><br>20 Feb 07:28:<br><blockquote>\n\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n\n\n<img apple-inline=\"yes\" id=\"88D463BC-D7
    45-40CC-A33B-9C7AEC237BF8\" src=\"?entryPoint=attachment&amp;id=5c6cf3f82e3b61704\" class=\"\"><br class=\"\">\n<div class=\"\">\n<div dir=\"auto\" style=\"caret-color: rgb(0, 0, 0); color: rgb(0,
    0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: b
    reak-word; -webkit-nbsp-mode: space; line-break: after-white-space;\" class=\"\">\n<div dir=\"auto\" style=\"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: star
    t; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break
    : after-white-space;\" class=\"\">\n<div dir=\"auto\" style=\"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; whit
    e-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;\" class=\"\">\n<div dir=\"
    auto\" style=\"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-tex
    t-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;\" class=\"\">\n<div dir=\"auto\" style=\"caret-color: rgb(0, 0, 0); color
    : rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; wor
    d-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;\" class=\"\">\n<div dir=\"auto\" style=\"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-al
    ign: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; l
    ine-break: after-white-space;\" class=\"\">\n<div dir=\"auto\" style=\"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: n
    one; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;\" class=\"\">\n<d
    iv dir=\"auto\" style=\"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -w
    ebkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;\" class=\"\">\n<div dir=\"auto\" style=\"caret-color: rgb(0, 0,
    0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration:
    none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;\" class=\"\">\n<div dir=\"auto\" style=\"color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-i
    ndent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;\" class=\"\
    ">\n<div dir=\"auto\" style=\"color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-wid
    th: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;\" class=\"\">\n<div dir=\"auto\" style=\"color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; tex
    t-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;\" class=
    \"\">\n<div dir=\"auto\" style=\"color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent:... [] []
    Code:
    [2019-02-20 06:53:45] Espo.ERROR: Display Error: '' must be string or resource, Code: 500 URL: /api/v1/Email [] []
    Permissions should have been set properly and system requirements are all green - see screenshot attached.

    What else could be wrong?

    - Tobias
  • Maximus
    Senior Member
    • Nov 2018
    • 2731

    #2
    Hi,
    can't reproduce. Could you attach screenshots how did you compose the message? What Espo version do you use?

    Comment

    • tobias
      Senior Member
      • May 2016
      • 229

      #3
      We use Espo 5.5.6 w/ Advanced Pack 1.33.8.

      This happens with every e-mail we receive that contains images. The example I shared was an e-mail sent using Mac OS Mail.

      Comment

      • Hanelala
        Junior Member
        • Feb 2019
        • 2

        #4
        Do you have a problem with MAC OS only? Or with Windows, too, have problems?

        Comment

        • tobias
          Senior Member
          • May 2016
          • 229

          #5
          I don't know what OS our customers use for sending the e-mail, I'm afraid.

          Comment

          • tobias
            Senior Member
            • May 2016
            • 229

            #6
            I've checked a few emails and it seems, that most of them have been sent from a Mac. Please have a look what's happening here with the images and provide a fix, since it's really annoying one cannot reply to an email sent from a Mac that has images in the body.

            UPDATE:
            At times, we see this error in the logs that could be related?

            Code:
            [2019-03-05 07:40:16] Espo.ERROR: EmailAccount 573d8d871354902ae (Get Message w/ parser MailMimeParser): [0] cannot set flags, have you tried to set the recent flag or special chars? [] []
            Last edited by tobias; 03-05-2019, 08:05 AM.

            Comment

            Working...