fix: Remove useless sendmail path check in testMailSend method

This commit is contained in:
SirLouen 2025-12-06 17:05:27 +01:00
parent b6729d7bd2
commit a767d446c2
No known key found for this signature in database
GPG Key ID: 87796BFBFE09911B
1 changed files with 0 additions and 6 deletions

View File

@ -82,12 +82,6 @@ final class MailTransportTest extends SendTestCase
*/
public function testMailSend()
{
$sendmail = ini_get('sendmail_path');
// No path in sendmail_path.
if (strpos($sendmail, '/') === false) {
ini_set('sendmail_path', '/usr/sbin/sendmail -t -i ');
}
$this->Mail->Body = 'Sending via mail()';
$this->buildBody();
$this->Mail->Subject = $this->Mail->Subject . ': mail()';