Opened 3 years ago
Closed 3 years ago
#1487004 closed Feature Requests (duplicate)
Support dynamic smtp host based default _host array
| Reported by: | carmei | Owned by: | |
|---|---|---|---|
| Priority: | 5 | Milestone: | later |
| Component: | SMTP connection | Version: | 0.4-stable |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Support dynamic smtp host based default _host array (e.g. %z) variable in configuration option
Based on the default host array as follows:
-> main.inc.php
$rcmail_configdefault_host? = array(
'imap.test1.de' => 'test1',
'imap.test2.de' => 'test2,
'imap.test3.net' => 'test3);
I add an additional line of code to the main.inc as follows
%h - IMAP host
$h = $_SESSIONimap_host?;
%z - IMAP host without first part, e.g. %h=mail.domain.tld, %z=domain.tld
$z = preg_replace('/[\.]+\./', , $h);
$name = str_replace(array('%n', '%d', '%h', '%z'), array($n, $d, $h, $z), $name);
return $name;
to support user defined smtp settings instead of php mail function.
-> main.inc.php
$rcmail_configsmtp_server? = 'smtp.%z';
Maybe this is an improvement for future releases.
Change History (1)
comment:1 Changed 3 years ago by thomasb
- Resolution set to duplicate
- Status changed from new to closed

Duplicate of #1487003