Results 1 to 2 of 2

Thread: Inbound Email formatting

  1. #1
    ericwindham is offline Member
    Join Date
    Aug 2008
    Posts
    10

    Default Inbound Email formatting

    Hi All

    I am having a problem with formatting in inbound emails. The email account we are using is a gmail account. We have receiving automotive leads in that gmail account. The gmail account is set up as our group inbound email account. The leads we receive are in the adf format(basically an xml document with a specific structure). When the emails are imported into SugarCRM, the formatting is weird and when we try to grab the xml in the body of the email and Simple XML throws a 'not a xml object' type error. Below is how the information looks when imported.

    Code:
    <adf>=0A<pros=
    pect>=0A<id>1033742</id>=0A<requestdate><![CDATA[1/23/2012 4:51:0=
    1 PM]]></requestdate>=0A<vehicle interest="buy" status="used"=
    >=0A<make>Honda</make>=0A<model>Civic</model>=0A<bodystyle>=0A<![=
    CDATA[Sedan, Wagon]]></bodystyle>=0A<pricecomments>=0A<![CDATA[Pr=
    ice Range = 2000 to 6000 / =0AMonthly Payment = 150 / =0AUsed=
    cars / Trade Vehicle = 1996 Chevrolet Lumina 4dr Sedan 3.1L =
    =0A 122000 Med Adriatic Blue (Met) Offer: $501 / ]]>=0A</pricec=
    omments>=0A<finance>=0A<amount type="monthly" currency="USD">=
    150</amount>=0A</finance>=0A</vehicle><customer>=0A<contact>=0A<n=
    ame part="first">Some</name>=0A<name part="last">Customer</n=
    ame>=0A<email>some@email.net</email>=0A<phone type="voi=
    ce" time="evening">555-555-5555</phone>=0A<phone type="voice"=
    time="afternoon">555-555-5555</phone>=0A<phone type="voice" =
    time="morning">555-555-5555</phone>=0A<address>=0A<city>Medford=
    </city>=0A<regioncode>NY</regioncode>=0A<postalcode>11763</postal=
    code>=0A<country>USA</country>=0A</address>=0A</contact>=0A<timef=
    rame>=0A<description>Within 1 month</description>=0A</timeframe>=0A=
    <comments>=0A<![CDATA[Pref 2= Toyota Camry / =0APref 3= Ford =
    Escort / =0ACredit Score= 600 - 650 / =0APrice Range= 2000 to=
    6000 / =0AMonthly Payment= 150 / =0AContact Pref: Morning, Aft=
    ernoon, Email / =0APurchase Timeframe= Within 1 month / =0ATrad=
    e Vehicle = 1996 Chevrolet Lumina 4dr Sedan 3.1L =0A 122000 =
    Med Adriatic Blue (Met) Offer: $501=0A / =0ATraffic Source: Kell=
    y Blue Book=0AThe shopper received the following information from=
    Kelley Blue Book on: Date: 01-23-2012, Vehicle: 1996 Chevrolet L=
    umina, Mileage: 122000.=0A Kelley Blue Book Values, based on cond=
    ition:=0AExcellent: $1100=0AGood: $925=0AFair: $650=0A=0A]]>=0A</=
    comments>=0A</customer>=0A<vendor>=0A<id source=" "> </id>=0A<i=
    d source="SomeProvider.com">66179931</id>=0A<vendorname>Some Mot=
    ors</vendorname>=0A<contact primarycontact="1">=0A<name part==
    "full">Some Dealer</name>=0A<email>dealer@somedealer.net</email>=
    =0A<phone type="voice">555-555-5555</phone>=0A<address>=0A<stre=
    et line="1">451 Some St.</street>=0A<city>Somecity</city>=
    =0A<regioncode>PA</regioncode>=0A<postalcode>19047</postalcode>=0A=
    <country>US</country>=0A</address>=0A</contact>=0A</vendor>=0A<pr=
    ovider>=0A<id source="SomeSource.com"> </id>=0A<name part="fu=
    ll">SomeProvider.com TIM</name>=0A<service>Trade-In Marketplace</se=
    rvice>=0A<url> http://tradein.autotrader.com</url>=0A<email>at-maj=
    oraccountssupport@autotrader.com</email>=0A<phone>877-547-7780</p=
    hone>=0A<contact primarycontact="1">=0A<name part="full">TIM =
    Support Team</name>=0A<email>at-majoraccountssupport@autotrader.c=
    om</email>=0A<phone type="voice" time="day">877-547-7780</pho=
    ne>=0A<address>=0A<street line="1">5775 Peachtree Dunwoody Rd.,=
    Suite A100</street>=0A<city>Atlanta</city>=0A<regioncode>GA</reg=
    ioncode>=0A<postalcode>30342</postalcode>=0A<country>US</country>=
    =0A</address>=0A</contact>=0A</provider>=0A</prospect>=0A</adf>
    Notice all of the equal(=) signs at the end of line. When I log directly into the gmail account, those equal signs aren't there. Can someone point to a reason why this is happening?

    Thanks
    Eric Windham

  2. #2
    jmertic is offline Sugar Community Manager
    Join Date
    Dec 2007
    Posts
    2,224

    Default Re: Inbound Email formatting

    Quote Originally Posted by ericwindham View Post
    Hi All

    I am having a problem with formatting in inbound emails. The email account we are using is a gmail account. We have receiving automotive leads in that gmail account. The gmail account is set up as our group inbound email account. The leads we receive are in the adf format(basically an xml document with a specific structure). When the emails are imported into SugarCRM, the formatting is weird and when we try to grab the xml in the body of the email and Simple XML throws a 'not a xml object' type error. Below is how the information looks when imported.

    Code:
    <adf>=0A<pros=
    pect>=0A<id>1033742</id>=0A<requestdate><![CDATA[1/23/2012 4:51:0=
    1 PM]]></requestdate>=0A<vehicle interest="buy" status="used"=
    >=0A<make>Honda</make>=0A<model>Civic</model>=0A<bodystyle>=0A<![=
    CDATA[Sedan, Wagon]]></bodystyle>=0A<pricecomments>=0A<![CDATA[Pr=
    ice Range = 2000 to 6000 / =0AMonthly Payment = 150 / =0AUsed=
    cars / Trade Vehicle = 1996 Chevrolet Lumina 4dr Sedan 3.1L =
    =0A 122000 Med Adriatic Blue (Met) Offer: $501 / ]]>=0A</pricec=
    omments>=0A<finance>=0A<amount type="monthly" currency="USD">=
    150</amount>=0A</finance>=0A</vehicle><customer>=0A<contact>=0A<n=
    ame part="first">Some</name>=0A<name part="last">Customer</n=
    ame>=0A<email>some@email.net</email>=0A<phone type="voi=
    ce" time="evening">555-555-5555</phone>=0A<phone type="voice"=
    time="afternoon">555-555-5555</phone>=0A<phone type="voice" =
    time="morning">555-555-5555</phone>=0A<address>=0A<city>Medford=
    </city>=0A<regioncode>NY</regioncode>=0A<postalcode>11763</postal=
    code>=0A<country>USA</country>=0A</address>=0A</contact>=0A<timef=
    rame>=0A<description>Within 1 month</description>=0A</timeframe>=0A=
    <comments>=0A<![CDATA[Pref 2= Toyota Camry / =0APref 3= Ford =
    Escort / =0ACredit Score= 600 - 650 / =0APrice Range= 2000 to=
    6000 / =0AMonthly Payment= 150 / =0AContact Pref: Morning, Aft=
    ernoon, Email / =0APurchase Timeframe= Within 1 month / =0ATrad=
    e Vehicle = 1996 Chevrolet Lumina 4dr Sedan 3.1L =0A 122000 =
    Med Adriatic Blue (Met) Offer: $501=0A / =0ATraffic Source: Kell=
    y Blue Book=0AThe shopper received the following information from=
    Kelley Blue Book on: Date: 01-23-2012, Vehicle: 1996 Chevrolet L=
    umina, Mileage: 122000.=0A Kelley Blue Book Values, based on cond=
    ition:=0AExcellent: $1100=0AGood: $925=0AFair: $650=0A=0A]]>=0A</=
    comments>=0A</customer>=0A<vendor>=0A<id source=" "> </id>=0A<i=
    d source="SomeProvider.com">66179931</id>=0A<vendorname>Some Mot=
    ors</vendorname>=0A<contact primarycontact="1">=0A<name part==
    "full">Some Dealer</name>=0A<email>dealer@somedealer.net</email>=
    =0A<phone type="voice">555-555-5555</phone>=0A<address>=0A<stre=
    et line="1">451 Some St.</street>=0A<city>Somecity</city>=
    =0A<regioncode>PA</regioncode>=0A<postalcode>19047</postalcode>=0A=
    <country>US</country>=0A</address>=0A</contact>=0A</vendor>=0A<pr=
    ovider>=0A<id source="SomeSource.com"> </id>=0A<name part="fu=
    ll">SomeProvider.com TIM</name>=0A<service>Trade-In Marketplace</se=
    rvice>=0A<url> http://tradein.autotrader.com</url>=0A<email>at-maj=
    oraccountssupport@autotrader.com</email>=0A<phone>877-547-7780</p=
    hone>=0A<contact primarycontact="1">=0A<name part="full">TIM =
    Support Team</name>=0A<email>at-majoraccountssupport@autotrader.c=
    om</email>=0A<phone type="voice" time="day">877-547-7780</pho=
    ne>=0A<address>=0A<street line="1">5775 Peachtree Dunwoody Rd.,=
    Suite A100</street>=0A<city>Atlanta</city>=0A<regioncode>GA</reg=
    ioncode>=0A<postalcode>30342</postalcode>=0A<country>US</country>=
    =0A</address>=0A</contact>=0A</provider>=0A</prospect>=0A</adf>
    Notice all of the equal(=) signs at the end of line. When I log directly into the gmail account, those equal signs aren't there. Can someone point to a reason why this is happening?

    Thanks
    Eric Windham
    Which version of Sugar are you using?
    John Mertic
    Sugar Community Manager

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Email Column Formatting
    By myaccess in forum Help
    Replies: 0
    Last Post: 2011-04-01, 06:20 PM
  2. email formatting issue
    By jules99 in forum Help
    Replies: 1
    Last Post: 2010-06-18, 05:32 AM
  3. Replies: 0
    Last Post: 2009-02-04, 08:49 PM
  4. Replies: 8
    Last Post: 2008-12-04, 08:07 PM
  5. Replies: 3
    Last Post: 2008-04-09, 11:59 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
  •