Page 1 of 1

smtp settings

PostPosted: Fri 15. Jan 2016, 09:17
by dexter303
Hi, good day.

What I i did is, I edited the config.php file and change there the smtp settings but the problem is, every time i export a new object the smtp settings that I put in the config.php file are overwritten or deleted.

I want to know how to set up the smtp email settings properly. Please help.

Thanks.

Re: smtp settings

PostPosted: Fri 15. Jan 2016, 10:24
by Andreas Rudolph
Hi dexter303.

The "config.php" file holds the default configuration, which is overwritten with every export from ImmoTool. To make sure, that your custom configurations are not lost, you can put the mail settings into the "load_config_default" function of the "myconfig.php" file:

Code: Select all
  function load_config_default(&$config) {
    // Keinen Content-Type verwenden, wenn eine Einbindung durch einen Wrapper stattfindet
    if (defined('OPENESTATE_WRAPPER'))
      $config->ContentType = null;

    // override default mail configurations
    $config->MailFrom = 'test@test.de';
    $config->MailFromName = 'Mustermann Immobilien GmbH';
    $config->MailToCC = '';
    $config->MailToBCC = '';
    $config->MailMethod = 'mail';
    $config->MailSendmailPath = '/usr/sbin/sendmail';
    $config->MailSmtpHost = 'localhost';
    $config->MailSmtpPort = 25;
    $config->MailSmtpSecurity = '';
    $config->MailSmtpAuth = false;
    $config->MailSmtpAuthLogin = '';
    $config->MailSmtpAuthPassword = '';
    $config->MailSmtpDebug = false;
  


The "myconfig.php" file is never overwritten by ImmoTool.

Re: smtp settings

PostPosted: Fri 15. Jan 2016, 10:36
by dexter303
awesome! works great.

Thank you very much.

Regards,
dex