smtp settings

Discussions about OpenEstate-ImmoTool
Forum rules
Please consider the general rules for this board, before you enter the discussion.

smtp settings

Postby 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.

Thanks.
dexter303
 
Posts: 2
Joined: Wed 13. Jan 2016, 15:34

Re: smtp settings

Postby 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 = '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.
Mit freundlichem Gruß / Yours sincerely
Andreas Rudolph
User avatar
Andreas Rudolph
 
Posts: 3737
Joined: Tue 16. Feb 2010, 21:48
Location: Berlin, Germany

Re: smtp settings

Postby dexter303 » Fri 15. Jan 2016, 10:36

awesome! works great.

Thank you very much.

Regards,
dex
dexter303
 
Posts: 2
Joined: Wed 13. Jan 2016, 15:34


Return to OpenEstate-ImmoTool

Who is online

Users browsing this forum: No registered users and 1 guest