Results 1 to 2 of 2

Thread: Email opt-out not reflecting in table

  1. #1
    incusdata is offline Junior Member
    Join Date
    Jul 2010
    Posts
    1

    Default Email opt-out not reflecting in table

    I have a contact on Sugar where the opt-out option has been selected (on screen the email address has clearly been struck out). When I run an SQL query directly against the database, however, the field email_opt_out for that contact still has the value "off". This has caused considerable embarrassment, as it means I have included this contact in an email run that takes place outside of Sugar.

    I have also found another contact where the opt-out option has NOT been selected, but the raw data has the value "on" for the email_opt_out field in the contacts table.

    I am running SugarCRM Community 5 on a MySQL database.

    Jacqui
    Incus Data

  2. #2
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: Email opt-out not reflecting in table

    The opt_out field in contacts/accounts/leads is a relict from the previous version 4.5.1.

    It is not used anymore since 5.0.0.

    To get the email-settings in version >= 5.0.0 you can use the sql-statement

    select c.*,cc.*,
    ea.email_address, ea.invalid_email,ea.opt_out
    from contacts_cstm cc,
    contacts c
    left join email_addr_bean_rel eabr
    on eabr.bean_id = c.id and eabr.bean_module='contacts' and eabr.deleted=0
    left join email_addresses ea
    on eabr.email_address_id = ea.id and ea.deleted = 0
    where c.id = cc.id_c;
    Harald Kuske
    Pre-Sales Engineer Central Europe

    SUGARCRM Deutschland GmbH
    Erika-Mann-Str. 53, 80636 Munich, Germany
    Email: hkuske@sugarcrm.com
    Home: http://www.sugarcrm.com


Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Email Address Table
    By ECRInternational in forum Developer Help
    Replies: 5
    Last Post: 2010-12-10, 06:24 AM
  2. STudio CUstomization not reflecting
    By Nuel in forum Help
    Replies: 3
    Last Post: 2009-05-18, 10:33 AM
  3. email table structures in sugar5
    By netron in forum Help
    Replies: 13
    Last Post: 2008-04-04, 07:54 PM
  4. Campaign email lists table relationships
    By MLCrane in forum Developer Help
    Replies: 2
    Last Post: 2007-09-07, 12:05 PM

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
  •