Add smtp to config

Issue #37 resolved
David created an issue

Add this to the function 'apply_preconfig'

                $smtpArr = parse_url($cfg['smtp']);

                $record['ident_switch.form.imap.host'] = $urlArr['host'] ? rcube::Q($urlArr['host'], 'url') : '';
                $record['ident_switch.form.imap.port'] = $urlArr['port'] ? intval($urlArr['port']) : '';

                $record['ident_switch.form.smtp.host'] = $smtpArr['host'] ? rcube::Q($smtpArr['host'], 'url') : '';
                $record['ident_switch.form.smtp.port'] = $smtpArr['port'] ? intval($smtpArr['port']) : '';

Comments (2)

  1. Log in to comment