Skip to content

Commit

Permalink
fix!: remove mail transport php-mail
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Kesselberg <[email protected]>
  • Loading branch information
kesselb committed Dec 17, 2024
1 parent e79c328 commit 8d1dd79
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 29 deletions.
4 changes: 4 additions & 0 deletions doc/admin.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ Configure how often Mail keeps users' mailboxes updated in the background in sec
```

### Use php-mail for sending mail

> [!WARNING]
> Support for using php-mail will be removed with Mail 4.2
You can use the php-mail function to send mails. This is needed for some webhosters (1&1 (1und1)):
```php
'app.mail.transport' => 'php-mail'
Expand Down
4 changes: 0 additions & 4 deletions lib/SMTP/SmtpClientFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@ public function __construct(IConfig $config,
*/
public function create(Account $account): Horde_Mail_Transport {
$mailAccount = $account->getMailAccount();
$transport = $this->config->getSystemValue('app.mail.transport', 'smtp');
if ($transport === 'php-mail') {
return new Horde_Mail_Transport_Mail();
}

$decryptedPassword = null;
if ($mailAccount->getOutboundPassword() !== null) {
Expand Down
25 changes: 0 additions & 25 deletions lib/SystemConfig.php

This file was deleted.

0 comments on commit 8d1dd79

Please sign in to comment.