smtp settings

Forum rules
Please consider the general rules for this board, before you enter the discussion.

Post a reply

Confirmation code
Enter the code exactly as it appears. All letters are case insensitive.
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:
BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON
Topic review

Expand view Topic review: smtp settings

Re: smtp settings

Post by dexter303 » Fri 15. Jan 2016, 10:36

awesome! works great.

Thank you very much.


Re: smtp settings

Post by Andreas Rudolph » Fri 15. Jan 2016, 10:24

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 = '';
    $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.

smtp settings

Post by dexter303 » Fri 15. Jan 2016, 09:17

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.