INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added)
  select 'SMTP: endereço do servidor', 'EMAIL_SMTP_HOST_SERVER', 'smtp.seuservidor.com.br', 'Endereço do servidor SMTP. Caso utilize o Google Apps, o endereço é "ssl://smtp.gmail.com"', '12', '10', NULL, now()
       from dual
       where not exists (select * from `configuration` where `configuration_key`='EMAIL_SMTP_HOST_SERVER');

INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added)
  select 'SMTP: Porta de acesso', 'EMAIL_SMTP_PORT_SERVER', '25', 'Porta a ser usada para conexão com o servidor. Padrão: 25. SSL: 465 (use no Google Apps)', '12', '12', NULL, now()
       from dual
       where not exists (select * from `configuration` where `configuration_key`='EMAIL_SMTP_PORT_SERVER');
INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added)
  select 'SMTP: Nome de usuário', 'EMAIL_SMTP_USERNAME', 'seu_nome_de_usuario', 'Nome de usuário para ser enviado na autenticação do envio. (Google Apps: utilize seu endereço de email completo)', '12', '14', NULL, now()
       from dual
       where not exists (select * from `configuration` where `configuration_key`='EMAIL_SMTP_USERNAME');
INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added)
  select 'SMTP: Senha', 'EMAIL_SMTP_PASSWORD', 'sua_senha', 'Senha para autenticação do usuário registrado acima.', '12', '15', NULL, now()
       from dual
       where not exists (select * from `configuration` where `configuration_key`='EMAIL_SMTP_PASSWORD');
