Results 1 to 5 of 5

Thread: Good advice for SugarCRM developers about Inbound Mail

  1. #1
    Skipidar is offline Sugar Community Member
    Join Date
    Oct 2006
    Location
    Russia, Moscow
    Posts
    27

    Default Good advice for SugarCRM developers about Inbound Mail

    In file InboundMail.php it's better to use strtolower($param->attribute) == 'charset', cause i found out that some clients send word CHARSET in header and your function cant recognize message charset.

    Code:
    if($tempObj->ifparameters) {
    foreach($tempObj->parameters as $param) {
    if(strtolower($param->attribute) == 'charset') {
    return $param->value;
    }
    }
    }

  2. #2
    roninpove is offline Junior Member
    Join Date
    Oct 2006
    Posts
    4

    Default Re: Good advice for SugarCRM developers about Inbound Mail

    Can you explain this a little bit please??

    Thank's.

  3. #3
    Skipidar is offline Sugar Community Member
    Join Date
    Oct 2006
    Location
    Russia, Moscow
    Posts
    27

    Default Re: Good advice for SugarCRM developers about Inbound Mail

    Ok, I'll try to explain
    Every Email has some parts - header, body, etc... Every header must have info about letter's charset, something like charset='utf8'... But i've found out that some mail programms can write CHARSET (uppercase) and then Sugar's Inbound Email cant recognize letter's charset in the right way... And mbstring module cant convert it to your current CRM's charset, so we got problem with writting data into database and showing it (errors). Code i've written before helps to handle that. I know my english is ugly, but i've tried.

  4. #4
    ivan.pove is offline Member
    Join Date
    Oct 2006
    Posts
    5

    Default Re: Good advice for SugarCRM developers about Inbound Mail

    Thank you so much, I understand it now perfectly, very nice to know that problem.

    Hey, your english is cool!
    It's much better than mine...

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

    Default Re: Good advice for SugarCRM developers about Inbound Mail

    thanks for that - i'll get it into the code.

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
  •