Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Problems with email

  1. #1
    romashka is offline Sugar Community Member
    Join Date
    Jan 2010
    Posts
    55

    Default Problems with email

    Hello everybody!

    I try to configure email setting, but when I fill in all the form, then the white list with message "Query Failed:UPDATE outbound_email SET id = '3b3859d7-e61d-970d-d8fc-499e9ca7c81e', name = 'system', type = 'system', user_id = '1', mail_sendtype = 'SMTP', mail_smtptype = 'exchange', mail_smtpserver = '***', mail_smtpport = '25', mail_smtpuser = '***', mail_smtppass = '***', mail_smtpauth_req = 1, mail_smtpssl = 0 WHERE id = '3b3859d7-e61d-970d-d8fc-499e9ca7c81e'::MySQL error 1054: Unknown column 'mail_smtptype' in 'field list'" appears.

    What can I do to solve the problem?

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

    Default Re: Problems with email

    Which version do you use?
    What is your version history?
    Can you post your diagnostic zip here?
    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


  3. #3
    romashka is offline Sugar Community Member
    Join Date
    Jan 2010
    Posts
    55

    Default Re: Problems with email

    Hello, Kuske!

    Thank you for your answer.

    We used 5.2a version, next we upgraded it to 5.5 and finally to 6.0.1.

    But what diagnostic zip you mean? How can I create it?

  4. #4
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Problems with email

    This missing field should be defined on script metadata/outboundEmailMetaData.php.
    Make sure this script exists and this field is defined inside such script.
    Go to Admin -> Repair -> Repair Database

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  5. #5
    romashka is offline Sugar Community Member
    Join Date
    Jan 2010
    Posts
    55

    Default Re: Problems with email

    this file exists and contains:

    Code:
    $dictionary['OutboundEmail'] = array ('table' => 'outbound_email',
    	'fields' => array (
    		'id' => array (
    			'name' => 'id',
    			'vname' => 'LBL_ID',
    			'type' => 'id',
    			'required' => true,
    			'reportable' => false,
    		),
    		'name' => array (
    			'name' => 'name',
    			'vname' => 'LBL_NAME',
    			'type' => 'varchar',
    			'len' => 50,
    			'required' => true,
    			'reportable' => false,
    		),
    		'type' => array (
    			'name' => 'type',
    			'vname' => 'LBL_TYPE',
    			'type' => 'varchar',
    			'len' => 15,
    			'required' => true,
    			'default' => 'user',
    			'reportable' => false,
    		),
    		'user_id' => array (
    			'name' => 'user_id',
    			'vname' => 'LBL_USER_ID',
    			'type' => 'id',
    			'required' => true,
    			'reportable' => false,
    		),
    		'mail_sendtype' => array(
    			'name' => 'mail_sendtype',
    			'vname' => 'LBL_MAIL_SENDTYPE',
    			'type' => 'varchar',
    			'len' => 8,
    			'required' => true,
    			'default' => 'smtp',
    			'reportable' => false,
    		),
    		'mail_smtptype' => array(
    			'name' => 'mail_smtptype',
    			'vname' => 'LBL_MAIL_SENDTYPE',
    			'type' => 'varchar',
    			'len' => 20,
    			'required' => true,
    			'default' => 'other',
    			'reportable' => false,
    		),
    		'mail_smtpserver' => array(
    			'name' => 'mail_smtpserver',
    			'vname' => 'LBL_MAIL_SMTPSERVER',
    			'type' => 'varchar',
    			'len' => 100,
    			'required' => false,
    			'reportable' => false,
    		),
    		'mail_smtpport' => array(
    			'name' => 'mail_smtpport',
    			'vname' => 'LBL_MAIL_SMTPPORT',
    			'type' => 'int',
    			'len' => 5,
    			'default' => 0,
    			'reportable' => false,
    		),
    		'mail_smtpuser' => array(
    			'name' => 'mail_smtpuser',
    			'vname' => 'LBL_MAIL_SMTPUSER',
    			'type' => 'varchar',
    			'len' => 100,
    			'reportable' => false,
    		),
    		'mail_smtppass' => array(
    			'name' => 'mail_smtppass',
    			'vname' => 'LBL_MAIL_SMTPPASS',
    			'type' => 'varchar',
    			'len' => 100,
    			'reportable' => false,
    		),
    		'mail_smtpauth_req' => array(
    			'name' => 'mail_smtpauth_req',
    			'vname' => 'LBL_MAIL_SMTPAUTH_REQ',
    			'type' => 'bool',
    			'default' => 0,
    			'reportable' => false,
    		),
    		'mail_smtpssl' => array(
    			'name' => 'mail_smtpssl',
    			'vname' => 'LBL_MAIL_SMTPSSL',
    			'type' => 'int',
    			'len' => 1,
    			'default' => 0,
    			'reportable' => false,
    		),
    	),
    	'indices' => array (
    		array(
    			'name' => 'outbound_email_pk',
    			'type' =>'primary',
    			'fields' => array(
    				'id'
    			)
    		),
    		array(
    			'name' => 'oe_user_id_idx',
    			'type' =>'index',
    			'fields' => array(
    				'id',
    				'user_id',
    			)
    		),
    	), /* end indices */
    );

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

    Default Re: Problems with email

    You can create the diagnostic package in admin - Diagnostic Tool.

    Try to set the log level to debug in admin - System Settings and run an admin - repair - repair database before creating the diagnostic package.
    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


  7. #7
    romashka is offline Sugar Community Member
    Join Date
    Jan 2010
    Posts
    55

    Default Re: Problems with email

    Hello!

    I try to repair DB, but I have a mistake:

    Code:
    Executing repair query: Query Failed:ALTER TABLE contracts modify column date_entered datetime NULL , modify column date_modified datetime NULL , ADD INDEX idx_CONTRACT_name (name)::MySQL error 1061: Duplicate key name 'idx_CONTRACT_name'

  8. #8
    romashka is offline Sugar Community Member
    Join Date
    Jan 2010
    Posts
    55

    Default Re: Problems with email

    Any ideas?

  9. #9
    romashka is offline Sugar Community Member
    Join Date
    Jan 2010
    Posts
    55

    Default Re: Problems with email

    Kuske,

    Here is TableSchema from the diagnistic file.
    Attached Files Attached Files

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

    Default Re: Problems with email

    I'm confused what happend with your database?

    To repair the outbound_email table you can do that in mysql by the command:

    ALTER TABLE outbound_email ADD COLUMN mail_smtptype VARCHAR(20) DEFAULT 'other';


    But it seems there are some other tables having problems.
    Last edited by kuske; 2011-01-28 at 09:01 AM.
    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


Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Email problems 5.0.0c
    By shan1111 in forum Help
    Replies: 10
    Last Post: 2008-04-19, 02:07 PM
  2. Email problems
    By rodneyh in forum Help
    Replies: 0
    Last Post: 2005-07-14, 10:19 PM
  3. Email problems
    By Greydude in forum General Discussion
    Replies: 7
    Last Post: 2005-03-30, 05:42 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
  •