Problem with format of Invitation emails

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alasdaircr
    Active Community Member
    • Aug 2014
    • 525

    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?
  • yuri
    Member
    • Mar 2014
    • 8552

    #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.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • alasdaircr
      Active Community Member
      • Aug 2014
      • 525

      #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

      • alasdaircr
        Active Community Member
        • Aug 2014
        • 525

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

        Comment

        • yuri
          Member
          • Mar 2014
          • 8552

          #5
          Attached .
          Attached Files
          If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

          Comment

          • alasdaircr
            Active Community Member
            • Aug 2014
            • 525

            #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

            • yuri
              Member
              • Mar 2014
              • 8552

              #7
              default charset is empty in php settings,


              Did you try to compose and send email in EspoCRM? Same problem with them?
              If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

              Comment

              • alasdaircr
                Active Community Member
                • Aug 2014
                • 525

                #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

                • yuri
                  Member
                  • Mar 2014
                  • 8552

                  #9
                  Maybe it's caused by text/calendar attachment "event.ics". ?
                  If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

                  Comment

                  • alasdaircr
                    Active Community Member
                    • Aug 2014
                    • 525

                    #10
                    Originally posted by yurikuzn
                    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

                    • Philipp
                      Junior Member
                      • Aug 2014
                      • 20

                      #11
                      Hi,

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

                      kind regards,
                      Philipp

                      Comment

                      • yuri
                        Member
                        • Mar 2014
                        • 8552

                        #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
                        If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

                        Comment

                        • Philipp
                          Junior Member
                          • Aug 2014
                          • 20

                          #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

                          • yuri
                            Member
                            • Mar 2014
                            • 8552

                            #14
                            Can you attach a screenshow how this email looks in your client. Thanks.
                            If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

                            Comment

                            • Philipp
                              Junior Member
                              • Aug 2014
                              • 20

                              #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:	151
Size:	80.8 KB
ID:	1739

                              After code change:
                              Click image for larger version

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

                              Comment

                              Working...