Results 1 to 5 of 5

Thread: E-mail attachments disappearing

  1. #1
    ohad is offline Junior Member
    Join Date
    Sep 2006
    Posts
    3

    Default E-mail attachments disappearing

    Hey,

    When I sent both personal and mass e-mails, attachment (both from Sugar Documents and from files) did not reach the recipient. The "sent items" display does show them, though.
    Looks like Sugar is trying to copy different files than there are really on disk. Can that be?
    Any ideas guys?

    logs:

    dir:
    XXXXX\wwwroot\sugar\cache\upload>dir
    Volume in drive C has no label.
    Volume Serial Number is FC7E-51F5

    Directory of XXXX\wwwroot\sugar\cache\upload

    09/14/2006 03:57 PM <DIR> .
    09/14/2006 03:57 PM <DIR> ..
    09/13/2006 04:02 PM 15,872 1dd8b517-61c0-27b4-659f-45088e7b5fb4
    09/14/2006 03:30 PM 2 2eb33824-84c0-7fa0-77d0-4509d7482d33
    09/14/2006 03:30 PM 6 35d86984-0de1-48ee-9c49-4509d78009d9
    09/14/2006 03:57 PM 240,128 5b6cc54a-c7a5-7682-c143-4509debb17ff
    09/14/2006 11:43 AM 92,759 d8943476-2351-d7b0-eba8-4509a28f8a3d
    07/28/2006 03:39 PM 56 index.html
    09/14/2006 12:44 PM 357,498 SugarSuite-Patch-4.5.0b.zip
    09/09/2006 11:40 AM 5,117,327 SugarSuite-Upgrade-4.2.1-to-4.5.0a.zip
    09/02/2006 06:17 AM <DIR> upgrades
    8 File(s) 5,823,648 bytes
    3 Dir(s) 63,346,053,120 bytes free

    PHP:
    [14-Sep-2006 15:55:03] PHP Warning: copy(cache/upload/d8943476-2351-d7b0-eba8-4509a28f8a3dClickTale Service - Beta Site Agreement.pdf) [<a href='function.copy'>function.copy</a>]: failed to open stream: No such file or directory in XXXXXXXXXXXX\wwwroot\sugar\include\upload_file.php on line 93

    Sugar:
    09/14/06 16:55:03,110 [3264] FATAL SugarCRM - SugarPHPMailer encountered an error: Could not access file: cache/upload/d8943476-2351-d7b0-eba8-4509a28f8a3dClickTale Service - Beta Site Agreement.pdf
    09/14/06 16:57:40,414 [3264] FATAL SugarCRM - SugarPHPMailer encountered an error: Could not access file: cache/upload/5b6cc54a-c7a5-7682-c143-4509debb17ffClickTale CRM Procedures.doc

  2. #2
    pixerp is offline Member
    Join Date
    Jan 2006
    Posts
    8

    Default Re: E-mail attachments disappearing

    See bug 8882.

    In 4.5, file naming (see in ./cache/upload) has been changed from IdOriginalFilename.ext to just Id.

    I guess there is some messing around in various modules + backward compatibility problems.

    This probably needs to be addressed by a sugarcrm SW architect and not just by a module developper !!!

    Hope someone gets it.

  3. #3
    Silkio is offline Sugar Community Member
    Join Date
    Sep 2006
    Posts
    11

    Default Re: E-mail attachments disappearing

    I fixed this in my copy of Open Source 4.5b temporarily by editing modules\Emails\Emails.php Line 673.

    From:
    Code:
    $file_location = $sugar_config['upload_dir'].$note->id.$note->file->original_file_name;
    To:

    Code:
    $file_location = $sugar_config['upload_dir'].$note->id;
    It seems to work until a bug fix comes out:

    http://www.sugarcrm.com/crm/?option=...e-4509e4b272ea
    http://www.sugarcrm.com/crm/?option=...f-451060055c1e

  4. #4
    ErikLindquist is offline Sugar Community Member
    Join Date
    Aug 2006
    Posts
    44

    Default Re: E-mail attachments disappearing

    I have Sugar Open source Version 4.5.0b (Build 1144)

    I have the same line in modules/Emails/Email.php
    $file_location = $sugar_config['upload_dir'].$note->id.$note->file->original_file_name;

    HOWEVER: I do not have a problem sending files from my file system. I tried files with contiguous filenames "filename.ext" and files with spaces in the names "file name.ext" and both reached their destination.

    Perhaps there is another cause underlying your problem with disappearing attachments.

    Erik

  5. #5
    malcolmh's Avatar
    malcolmh is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Aug 2004
    Posts
    1,712

    Default Re: E-mail attachments disappearing

    Quote Originally Posted by Silkio
    I fixed this in my copy of Open Source 4.5b temporarily by editing modules\Emails\Emails.php Line 673.

    From:
    Code:
    $file_location = $sugar_config['upload_dir'].$note->id.$note->file->original_file_name;
    To:

    Code:
    $file_location = $sugar_config['upload_dir'].$note->id;
    It seems to work until a bug fix comes out:

    http://www.sugarcrm.com/crm/?option=...e-4509e4b272ea
    http://www.sugarcrm.com/crm/?option=...f-451060055c1e
    Thanks,

    Seems to work for us as well

    Thanks
    Cheers Malcolm

    Genius4U Limited - Ingenious simple IT solutions for you / Genial einfache IT Lösungen für Sie
    http://www.genius4u.com or http://www.genius4u.de

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
  •