zend-mail
zend-mail copied to clipboard
When set -f option, no set -f option automatically
Zend\Mail\Transport\SendMail always append envelope-from parameter.
But I want to set any envelope-from.
In this PR, only when not set option -f, set -f option automatically.
This means if I set [email protected] or -bs [email protected], Zend\Mail\Transport\Sendmail doesn't set -f option.
without getting deeper to the actual changes, have some thoughts:
- seems weird to have a negative parameter. how about set positive parameter which is b default true, and can be set as false.
- maybe have a specific option (envelope related) rather generic "no override" as behavior could be different if want/want not to override some other parameter.
Thank you for you reply and advice !
I rethink, revise my code and changed this PR goal.
On this PR, only when not set option -f, set -f option automatically.
This means if I set [email protected] or -bs [email protected], Transport\Sendmail doesn't set -f option.
So there is no negative parameter, no additional method.
you should update PR title as well. and the body is a bit hard to read as well.
This repository has been closed and moved to laminas/laminas-mail; a new issue has been opened at https://github.com/laminas/laminas-mail/issues/17.
This repository has been moved to laminas/laminas-mail. If you feel that this patch is still relevant, please re-open against that repository, and reference this issue. To re-open, we suggest the following workflow:
- Squash all commits in your branch (
git rebase -i origin/{branch}) - Make a note of all changed files (`git diff --name-only origin/{branch}...HEAD
- Run the laminas/laminas-migration tool on the code.
- Clone laminas/laminas-mail to another directory.
- Copy the files from the second bullet point to the clone of laminas/laminas-mail.
- In your clone of laminas/laminas-mail, commit the files, push to your fork, and open the new PR. We will be providing tooling via laminas/laminas-migration soon to help automate the process.