Announcement

Collapse
No announcement yet.

Problem with format of Invitation emails

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem with format of Invitation emails

    There's something wrong with the MIME type formatting of invitation emails. I wonder if it's because no bodyPlain section is being included. Both outlook on a mac and gmail have trouble displaying the email - I see the html content as plain text.

    Is it working for devs?

  • #2
    Not sure if it's caused by missing body plain. Anyway I will add this to the next hot-fix.

    I have just tested on GMail and both HTML and ICS where displayed properly.

    Comment


    • #3
      Strange then, may be an issue with the php setup I have and zend? In the broken emails the plan text mime part comes before the multipart declaration.

      Comment


      • #4
        Could post the source of the email which displayed correctly in gmail?

        Comment


        • #5
          Attached .
          Attached Files

          Comment


          • #6
            And here is mine:

            Notice the possible weirdness of the Date: following the subject: and to: rows.

            Also I have an extra Mime part with no content.

            Looking at this https://github.com/zendframework/zf2/issues/2460 seems the mime handling is maybe not completely stable with zend, though I don't understand what's different about our setups.

            What charset are you running PHP under? UTF-8?
            Attached Files

            Comment


            • #7
              default charset is empty in php settings,


              Did you try to compose and send email in EspoCRM? Same problem with them?

              Comment


              • #8
                I've tried it with default empty or UTF-8. Both have the same problem.

                This only happens with invitations, with composed email in EspoCRM the HTML is displayed fine, attachments are sent correctly.

                Comment


                • #9
                  Maybe it's caused by text/calendar attachment "event.ics". ?

                  Comment


                  • #10
                    Originally posted by yurikuzn View Post
                    Maybe it's caused by text/calendar attachment "event.ics". ?
                    Well your email had the attachment though too though right? Next week I'll have a closer look at the differences between the invitation email code and the regular email send php. Thanks for looking at this

                    Comment


                    • #11
                      Hi,

                      I'm facing the same issue. When do you think, there will be a fix?

                      kind regards,
                      Philipp

                      Comment


                      • #12
                        I still can't reproduce this so not sure if it will be fixed in the next version.

                        Can you do one change if code and try to send invitation?

                        File application/Espo/Modules/Crm/Business/Event/Invitations.php

                        File

                        $email->addAttachment($attachment);

                        and comment it out

                        // $email->addAttachment($attachment);

                        And let me know if this have fixed the issue.

                        Thanks

                        Comment


                        • #13
                          No, still not looking fine.
                          I see this text in mail:
                          HTML Code:
                          MIME-Version: 1.0
                          Content-Type: text/html;
                           charset="utf-8"
                          Content-Transfer-Encoding: 8bit
                          Sender:
                           
                          <p>Subject: Test</p>
                          <p>Date & time: 29.08.2014 02:46</p>
                          <p>
                          <a href="http://crm.xy.de?entryPoint=eventConfirmation&action=accept&uid=54004fc0d769f">Accept</a>, <a href="http://crm.xy.de?entryPoint=eventConfirmation&action=decline&uid=54004fc0d769f">Decline</a>
                          </p>

                          Comment


                          • #14
                            Can you attach a screenshow how this email looks in your client. Thanks.

                            Comment


                            • #15
                              Hi,

                              see attached docs.
                              It's MS Outlook 2010, but in my Gmail Webmail interface it looks exactly the same.

                              Before code change:
                              Click image for larger version

Name:	before.jpg
Views:	145
Size:	80.8 KB
ID:	1739

                              After code change:
                              Click image for larger version

Name:	after.jpg
Views:	147
Size:	30.1 KB
ID:	1740

                              Comment

                              Working...
                              X