Page 1 of 4 1234 LastLast
Results 1 to 10 of 31

Thread: Sending Email - attachment bug in v4.2?

  1. #1
    jasonslater2000 is offline Sugar Community Member
    Join Date
    Aug 2005
    Posts
    21

    Default Sending Email - attachment bug in v4.2?

    Just upgraded to 4.20 Professional
    Looks nice, but noticing some critical problems that will force a rollback if not solved

    Hosting locally on Windows + XAMPP

    Emails w/o attachments send find
    Emails w/ attachments give the following in the sugar log:
    3/31/06 14:04:46,792 [528] FATAL SugarCRM - Error emailing:File Error: Could not open file: C:\Program Files\xampp\tmp\phpA1.tmp

    What's happening is the file is ending up in Sugar's ./cache/upload folder, but the email send is trying to find it in PHP's upload directory (upload_tmp_dir) and with the wrong filename (a php??.tmp file vs. GUID+filename).

    Verified that sending an attachment which comes from Sugar Documents works OK. Sending one that gets uploaded on the fly via Browse... during email composing has the problem.
    Last edited by jasonslater2000; 2006-03-31 at 11:22 PM.

  2. #2
    pprice is offline Junior Member
    Join Date
    Mar 2006
    Posts
    3

    Default Re: Sending Email - attachment bug in v4.2?

    I am having the same problem with any attachment. Messages without attachments send fine, but messages with any type of attachment fail.

    Running v4.2
    On Windows 2003 server with IIS
    PHP 5.1.2

  3. #3
    pierreavista is offline Sugar Community Member
    Join Date
    Jan 2006
    Location
    Paris, France
    Posts
    103

    Default Re: Sending Email - attachment bug in v4.2?

    Hi there

    I was having the same problem as you until I found a solution, after exchanging some emails with support people at Sugar. I am also running SugarPro on a Win2003 Server, with IIS.

    My problem was that, because of the numerous other problems with 4.2, we had decided to do a fresh install if 4.2. And of course we forgot to copy the content of \cache\upload. ONce we moved everything for our old installation to the new, the email with attachement started working.

    A couple of other basic things you can do are :
    - Empty your Browser cache
    - Try sending an email with an attachement coming from your computer
    - Add a new document to Sugar - Create an email and try attaching this new document from withing Sugar.
    - Create a new email and try attaching a document from within Sugar that was added by another user.

    These tests will allow you to better understand where the problem comes from. After doing all these tests, and figuring out how this was working, move the files on the server, all is back to normal for us.... on that point at least with 4.2....

    I am also considering downgrading to 4.01e today because of all the other problems.....

  4. #4
    pprice is offline Junior Member
    Join Date
    Mar 2006
    Posts
    3

    Default Re: Sending Email - attachment bug in v4.2?

    I was able to solve the problem by changing the php.ini file line:
    upload_tmp_dir = F:\PHP\uploadtemp
    to my sugar cache\upload file: upload_tmp_dir = C:\inteput\wwwroot\SugarCRM\Cache\upload.

    Attachments now work fine.

    Hope this helps you!

  5. #5
    trund is offline Member
    Join Date
    Apr 2006
    Posts
    5

    Default Re: Sending Email - attachment bug in v4.2?

    Am having exactly the same problem on Linux. Must be bug or something, will try to ask my host to change the directory and let you know.

    But sometimes the attachments indeed do get sent...

  6. #6
    trund is offline Member
    Join Date
    Apr 2006
    Posts
    5

    Default Re: Sending Email - attachment bug in v4.2?

    Changing the upload_tmp_dir in php.ini didn´t help at all.

    Seems like the problem happens only when you try to send files that are attached to email template. If template has no attachments and you only attach files when you´re ready to send, they will get sent just fine. If they are attached to the template they won´t get sent at all.

    Submitted as a bug 5819.

    Does anyone have any ideas how to fix this?

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

    Default Re: Sending Email - attachment bug in v4.2?

    I have the same observation: attachment work in email but "dropped" in marketing email. And I am using version 4.2

    There is a suggestion to uncomment a line. But I tried and still no attachment in the campaign marketing.: http://www.sugarcrm.com/forums/showthread.php?t=11633



    Quote Originally Posted by trund
    Changing the upload_tmp_dir in php.ini didn´t help at all.

    Seems like the problem happens only when you try to send files that are attached to email template. If template has no attachments and you only attach files when you´re ready to send, they will get sent just fine. If they are attached to the template they won´t get sent at all.

    Submitted as a bug 5819.

    Does anyone have any ideas how to fix this?

  8. #8
    trund is offline Member
    Join Date
    Apr 2006
    Posts
    5

    Default Re: Sending Email - attachment bug in v4.2?

    Sugar team have advised me to uncomment the line - I believe it was line 159 for me (am running 4.2).

    After this was done, the attachments are now sent fine.

  9. #9
    clint's Avatar
    clint is offline Sugar Team Member | Forums Lead Moderator
    Join Date
    Aug 2004
    Location
    Silicon Valley
    Posts
    2,120

    Default Re: Sending Email - attachment bug in v4.2?

    Hey folks-

    We are going to fix this bug in the upcoming 4.2.0 patch B.

    Regards,
    Clint
    Sugar Developer Zone - developer resources | Sugar University - user and admin training
    Sugar Docs - user and admin documentation |
    Sugar Bug Tracker - Enter or view bugs
    SugarForge- open source modules, themes, lang packs | SugarExchange - commercial extensions

    Clint Oram
    Chief Technology Officer and Co-founder
    SugarCRM

  10. #10
    sugarchris's Avatar
    sugarchris is offline Sugar Community Member
    Join Date
    Sep 2005
    Location
    San Francisco, CA
    Posts
    861

    Default Re: Sending Email - attachment bug in v4.2?

    Here's a bit of an update for those of you having email attachment issues: there are several issues, not just the one; they all have one thing in common: attachments.

    Here are the cases I've been able to identify and isolate:
    1. when sending a simple, composed email with attachment, the email does not send (OP's problem).

    2. when sending a simple, composed email using an Email Template that has either a file or Document attachment, the email is sent, but the attachment is not.

    3. when sending an Email Campaign, and using an Email Template with either a file or document attachment, the email is sent, but no attachments are sent.

    Cases 2 & 3, I have been able to resolve for 4.2.0b (still forthcoming). Case 1 is a problem as I (and the support staff here) have not been able to reproduce. As far as I can tell, the issue is localized to Windows-based instances, either with IIS or XAMPP/stack installs.

    If anyone experiences this in a linux-based install, please list your server/PHP specs in this thread.

    Thanks.

Page 1 of 4 1234 LastLast

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
  •