Results 1 to 5 of 5

Thread: Possible Email Template with Attachments Bug

  1. #1
    dougd is offline Sugar Community Member
    Join Date
    Dec 2005
    Posts
    11

    Default Possible Email Template with Attachments Bug

    I've found that with SugarCRM 4.2.0a that when sending emails using templates that have attachments in them from Sugar's documents module the attachments are not sent although since the recent 4.2 patch they are now listed as having been sent. Attachments added to the email manually from the documents module do work properly however.

    Regards,
    Doug.

  2. #2
    dougd is offline Sugar Community Member
    Join Date
    Dec 2005
    Posts
    11

    Default Re: Possible Email Template with Attachments Bug

    The solution I've found to this problem is rather odd.

    For some reason the following line is commented out on line 159 of the emails module save.php file.

    $focus->attachments = array_merge($focus->attachments, $noteArray);

    Uncommenting this line fixes the problem.

    I'm curious as to why this would have been commented out.

    Regards,
    Doug.
    Last edited by dougd; 2006-04-24 at 04:20 AM.

  3. #3
    supercathknet is offline Member
    Join Date
    Apr 2006
    Posts
    7

    Default Re: Possible Email Template with Attachments Bug

    I also encountered the same problem that email attachment fail to send attachment in marketing (but work in ordinary email sent in SugarCRM).

    I have tried the solution: uncomment line 149 (not 159 as I found) in file modules/Emails/Save.php.

    However, the attachment in email marketing still doesn't work.

    I have tried version 4.2 and 4.2.0a.

  4. #4
    dougd is offline Sugar Community Member
    Join Date
    Dec 2005
    Posts
    11

    Default Re: Possible Email Template with Attachments Bug

    I was note using email marketing when I encountered this problem, just simply sending an email by selecting a template. The problem was related to attachments in the template not being sent.

    Also on an interesting note, I checked up on the line in question and for me it definitely is line 159 in modules/Emails/Save.php.

    Regards.
    Doug.

  5. #5
    supercathknet is offline Member
    Join Date
    Apr 2006
    Posts
    7

    Default Re: Possible Email Template with Attachments Bug

    (Summary: uncommented the line 159, but attachment work in ordinary email template, but still doesn't work in campaign email marketing)


    I have reinstalled everything and tried SugarCRM 4.2.0a again.
    Many thanks to dougd. I found the commented code at line 159 in file modules/Email/Save.php

    Previously, I only use email template for email marketing. This time I tried normal mail with email template. Before uncommenting the code, attachment doesn't work in email template. After uncommenting the line 159
    $focus->attachments = array_merge($focus->attachments, $noteArray);

    The attachment then works with email template under "user compose email".

    However, I tried again with Email marketing with the same template and the attachment is still missed.

    My situation is improved. Yet I still can attach files in email marketing. By the way, the file I tried is a small jpeg file. And it is found in directory "cache/upload":

    -rw-r--r-- 1 apache apache 1011 Apr 29 13:36 1ed024ec-abf7-805e-9cc2-4452fb6816b2simplepic.jpg


    Yours,
    Raymond

Thread Information

Users Browsing this Thread

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

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
  •