Results 1 to 3 of 3

Thread: emails with attachment fail

  1. #1
    brianwg07sugar is offline Senior Member
    Join Date
    Jun 2008
    Posts
    30

    Default emails with attachment fail

    Hi,

    When we attempted to send email with an attachment, we see an error message.

    Warning: mime_content_type(cache/upload/7e513217-5a9c-eda4-3fc5-4a002a843228) [function.mime-content-type]: failed to open stream: No such file or directory in /var/www/html/sugarcrm/modules/Emails/Email.php on line 317
    while(1);/*{"composeLayoutId":"composeLayout1"}*/

    The recipient can receive emails although the "compose email" screen does not change, giving the impression that the email is not sent successfully. There is no problem if the email does not have an attachment.

    We then checked the cache directory and found the following file appears to have sufficient permissions rw-r--r apache:apach.

    cache/upload/7e513217-5a9c-eda4-3fc5-4a002a843228

    Chmod will not work in this case as the file appears to be generated every time when we attempted to send an email with an attachment. A refresh file will be re-generated with similar permissions when we tried to send the email again.

    We checked our sugarcrm/config.php, we have the following default permissions.

    default_permissions' =>
    array (
    'dir_mode' => 1528,
    'file_mode' => 432,
    'user' => 'apache',
    'group' => 'apache

    This appears to be correct. I also have run the following in the sugarCRM root directory.:

    chown -R apache:apache *
    chmod -R 770 *

    Any idea how we can fix the problem?

    regards

    Brian

  2. #2
    crmsiva's Avatar
    crmsiva is offline A Sugar Hero
    Join Date
    Jan 2009
    Location
    Chennai, India
    Posts
    1,130

    Default Re: emails with attachment fail

    Set 777 permissions to cache folder and check.

    Do you have language packs installed in sugar? Sometimes language packs cause problems.

  3. #3
    JournalIT is offline Junior Member
    Join Date
    Jan 2009
    Posts
    4

    Default Re: emails with attachment fail

    I am also experiencing this problem. Was a solution confirmed?

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. attachment error in emails module
    By manuele in forum Help
    Replies: 1
    Last Post: 2009-03-20, 03:10 PM
  2. Replies: 0
    Last Post: 2007-07-18, 02:40 PM
  3. How are attachment files stored for template emails?
    By jspencer in forum General Discussion
    Replies: 3
    Last Post: 2007-07-09, 02:42 PM
  4. Fail to run cron tab
    By lehoangngochan in forum Help
    Replies: 0
    Last Post: 2007-04-18, 10:39 AM
  5. Include attachment in notification emails
    By john_angel in forum Downloads
    Replies: 0
    Last Post: 2006-05-02, 11:37 AM

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
  •