You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Commit 0e236e4 breaks sending mails with set "From" when SendmailMailer::$commandArgs is also set.
In that case function mail() is invoked with 6 parameters instead of expected 5 parameters.
Steps To Reproduce
$mail = new \Nette\Mail\Message();
$mail->setFrom('[email protected]');
$mailer = new \Nette\Mail\SendmailMailer();
$mailer->commandArgs = '[email protected]';
$mailer->send($mail);
Produces ArgumentCountError "mail() expects at most 5 arguments, 6 given".
Expected Behavior
Function mail() is successfully invoked.
Possible Solution
Command arguments from mailer must be concatenated with value from message.
The text was updated successfully, but these errors were encountered:
Version: 4.0.0
Bug Description
Commit 0e236e4 breaks sending mails with set "From" when
SendmailMailer::$commandArgs
is also set.In that case function
mail()
is invoked with 6 parameters instead of expected 5 parameters.Steps To Reproduce
Produces ArgumentCountError "mail() expects at most 5 arguments, 6 given".
Expected Behavior
Function
mail()
is successfully invoked.Possible Solution
Command arguments from mailer must be concatenated with value from message.
The text was updated successfully, but these errors were encountered: