8000 minor #44567 [Mailer] Update docs for sendmail -t (fabpot) · symfony/symfony@3269f40 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3269f40

Browse files
committed
minor #44567 [Mailer] Update docs for sendmail -t (fabpot)
This PR was merged into the 4.4 branch. Discussion ---------- [Mailer] Update docs for sendmail -t | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | Fix #40070 Replaces #39744 Based on the comments in the referenced issue and pull request, I think the best we can do is to document the issues when using `sendmail -t`. I think we should also make it very clear in our docs (not just in the code). Commits ------- d05e10a [Mailer] Update docs for sendmail -t
2 parents 4b6e29d + d05e10a commit 3269f40

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/Symfony/Component/Mailer/Transport/SendmailTransport.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@
2323
/**
2424
* SendmailTransport for sending mail through a Sendmail/Postfix (etc..) binary.
2525
*
26-
* Supported modes are -bs and -t, with any additional flags desired.
27-
* It is advised to use -bs mode since error reporting with -t mode is not
28-
* possible.
29-
*
3026
* @author Fabien Potencier <fabien@symfony.com>
3127
* @author Chris Corbyn
3228
*/
@@ -39,11 +35,14 @@ class SendmailTransport extends AbstractTransport
3935
/**
4036
* Constructor.
4137
*
42-
* If using -t mode you are strongly advised to include -oi or -i in the flags.
43-
* For example: /usr/sbin/sendmail -oi -t
44-
* -f<sender> flag will be appended automatically if one is not present.
38+
* Supported modes are -bs and -t, with any additional flags desired.
4539
*
4640
* The recommended mode is "-bs" since it is interactive and failure notifications are hence possible.
41+
* Note that the -t mode does not support error reporting and does not support Bcc properly (the Bcc headers are not removed).
42+
*
43+
* If using -t mode, you are strongly advised to include -oi or -i in the flags (like /usr/sbin/sendmail -oi -t)
44+
*
45+
* -f<sender> flag will be appended automatically if one is not present.
4746
*/
4847
public function __construct(string $command = null, EventDispatcherInterface $dispatcher = null, LoggerInterface $logger = null)
4948
{

0 commit comments

Comments
 (0)
0