Skip to content

[Mailer] Document new Mailer transport options #13911

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 30, 2021

Conversation

fritzmg
Copy link
Contributor

@fritzmg fritzmg commented Jun 26, 2020

This documents the additional options for the Mailer component introduced in symfony/symfony#37432

@fritzmg
Copy link
Contributor Author

fritzmg commented Jun 26, 2020

May be it would be better to add verify_peer to the list of options, instead of it having its own section.

@fritzmg
Copy link
Contributor Author

fritzmg commented Aug 27, 2020

Since components/mailer.rst got removed, should I may be base this PR off of #14083?

@OskarStark OskarStark added the Waiting Code Merge Docs for features pending to be merged label Aug 27, 2020
@OskarStark OskarStark added this to the 5.2 milestone Aug 27, 2020
Comment on lines 183 to 185
.. versionadded:: 5.2

These options were added in Symfony 5.2.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be problematic if further options will be added, lets say in 5.3. I would recommend to remove this versionadded directive and do it like...

Comment on lines 190 to 192
Command to be executed by ``sendmail`` transport.

$dsn = 'sendmail://default?command=/usr/sbin/sendmail%20-oi%20-t'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Command to be executed by ``sendmail`` transport.
$dsn = 'sendmail://default?command=/usr/sbin/sendmail%20-oi%20-t'
Command to be executed by ``sendmail`` transport.
$dsn = 'sendmail://default?command=/usr/sbin/sendmail%20-oi%20-t'
.. versionadded:: 5.2
The ``command`` option was introduced in Symfony 5.2.

Please do this for the other options, too

local_domain
~~~~~~~~~~~~

The domain name to use in ``HELO`` command.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The domain name to use in ``HELO`` command.
The domain name to use in ``HELO`` command::

Can you explain to me what HELO is? Maybe we could add a link to a wikipedia page or sth. else?

Copy link
Contributor Author

@fritzmg fritzmg Aug 27, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You mean like https://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol#SMTP_transport_example? That's were "HELO" links to from other pages on Wikipedia at least.

~~~~~~~~~~~~~~~~~

The maximum number of messages to send before re-starting the transport. Can be
used together with ``restart_threshold_sleep`` which is the number of seconds to
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This option is not documented, isn't it? 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, I'll ammend it with the other changes.

@OskarStark OskarStark changed the title [Mailer] Document added mailer transport options [Mailer] Document new Mailer transport options Aug 27, 2020
@fritzmg
Copy link
Contributor Author

fritzmg commented Aug 27, 2020

@OskarStark I'll wait for #14083 to be merged, before I make any changes, since the whole thing needs to be restructured then anyway.

fabpot added a commit to symfony/symfony that referenced this pull request Aug 27, 2020
… (fritzmg)

This PR was squashed before being merged into the 5.2-dev branch.

Discussion
----------

[Mailer] Implement additional mailer transport options

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Tickets       | Fix #37300
| License       | MIT
| Doc PR        | symfony/symfony-docs#13911

This implements additional transport configuration options mentioned in #37300. It also adds a `command` option to be able to define the command used by the `sendmail` transport.

Examples:

```yml
framework:
  mailer:
    transports:
      sendmail: sendmail://default?command=/usr/sbin/sendmail%%20-oi%%20-t
      local_domain: smtps://smtp.example.com?local_domain=example.org
      restart_threshold: smtps://smtp.example.com?restart_threshold=10&restart_threshold_sleep=1
      ping_threshold: smtps://smtp.example.com?ping_threshold=200
```

Commits
-------

665d1cd [Mailer] Implement additional mailer transport options
@OskarStark OskarStark removed the Waiting Code Merge Docs for features pending to be merged label Aug 27, 2020
@xabbuh xabbuh changed the base branch from master to 5.x October 6, 2020 11:54
@xabbuh xabbuh changed the base branch from 5.x to 5.2 November 17, 2020 10:06
@OskarStark
Copy link
Contributor

Can you please rebase? Thanks

@javiereguiluz javiereguiluz force-pushed the feature/more-mailer-options branch from 96b8ba8 to f713212 Compare July 30, 2021 15:11
@javiereguiluz
Copy link
Member

Thanks for contributing these docs! We changed them a bit and fixed the conflicts while merging. Congrats on your first Symfony Docs contribution!

@javiereguiluz javiereguiluz merged commit b587cdb into symfony:5.2 Jul 30, 2021
@fritzmg
Copy link
Contributor Author

fritzmg commented Jul 30, 2021

Sorry, completely dropped off my radar :)

@fritzmg fritzmg deleted the feature/more-mailer-options branch July 30, 2021 15:16
symfony-splitter pushed a commit to symfony/mailer that referenced this pull request Sep 28, 2021
… (fritzmg)

This PR was squashed before being merged into the 5.2-dev branch.

Discussion
----------

[Mailer] Implement additional mailer transport options

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Tickets       | Fix #37300
| License       | MIT
| Doc PR        | symfony/symfony-docs#13911

This implements additional transport configuration options mentioned in #37300. It also adds a `command` option to be able to define the command used by the `sendmail` transport.

Examples:

```yml
framework:
  mailer:
    transports:
      sendmail: sendmail://default?command=/usr/sbin/sendmail%%20-oi%%20-t
      local_domain: smtps://smtp.example.com?local_domain=example.org
      restart_threshold: smtps://smtp.example.com?restart_threshold=10&restart_threshold_sleep=1
      ping_threshold: smtps://smtp.example.com?ping_threshold=200
```

Commits
-------

665d1cd3fa [Mailer] Implement additional mailer transport options
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants