Skip to content

Removed Mailer component docs #13945

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
Aug 3, 2020
Merged

Conversation

wouterj
Copy link
Member

@wouterj wouterj commented Jul 8, 2020

See symfony/symfony#37542

The component is quite easy to use in a standalone project. The example in the component's README will be enough I think (no need to confuse framework users by adding the examples in this doc).

Meanwhile, I'm not sure what to do with the Mime component. Should we move it into a subguide (/mailer/mime.rst)? It doesn't really make sense to have it as a main guide I think.

@wouterj wouterj force-pushed the components/move-new-in-4.4 branch from 2858190 to 868c0bd Compare July 8, 2020 20:21
@javiereguiluz javiereguiluz added this to the 4.4 milestone Jul 9, 2020
@wouterj wouterj force-pushed the components/move-new-in-4.4 branch from 5dd6757 to 225de94 Compare July 9, 2020 16:18
@wouterj
Copy link
Member Author

wouterj commented Jul 9, 2020

Oh, I'm sorry for the countless copy-paste mistakes. Thanks for your detailed review!

fabpot added a commit to symfony/symfony that referenced this pull request Jul 31, 2020
This PR was merged into the 4.4 branch.

Discussion
----------

[Mailer] Updated README for the Mailer component

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | n/a
| License       | MIT
| Doc PR        | symfony/symfony-docs#13945

I think it's worth adding a second example showcasing the twig integration for 2 reasons:

* If you're used to use this component in the framework, I think it's likely you want Twig integration in standalone apps.
* The integration actually lives in `symfony/twig-bridge`, it won't be very easy to catch while reading the component code - unless you're very comfortable with the Symfony architecture.

Commits
-------

696560c Updated README for the Mailer component
symfony-splitter pushed a commit to symfony/mailer that referenced this pull request Jul 31, 2020
This PR was merged into the 4.4 branch.

Discussion
----------

[Mailer] Updated README for the Mailer component

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | n/a
| License       | MIT
| Doc PR        | symfony/symfony-docs#13945

I think it's worth adding a second example showcasing the twig integration for 2 reasons:

* If you're used to use this component in the framework, I think it's likely you want Twig integration in standalone apps.
* The integration actually lives in `symfony/twig-bridge`, it won't be very easy to catch while reading the component code - unless you're very comfortable with the Symfony architecture.

Commits
-------

696560c690 Updated README for the Mailer component
@fabpot
Copy link
Member

fabpot commented Jul 31, 2020

The change upstream has been merged now.

@xabbuh
Copy link
Member

xabbuh commented Aug 3, 2020

Thank you Wouter.

@xabbuh xabbuh merged commit a6828a1 into symfony:4.4 Aug 3, 2020
@wouterj wouterj deleted the components/move-new-in-4.4 branch August 5, 2020 15:40
@oxan
Copy link

oxan commented Sep 11, 2020

This change completely removed this paragraph from the documentation.

@wouterj
Copy link
Member Author

wouterj commented Sep 11, 2020

Hi @oxan! The null DSN is documented here: https://symfony.com/doc/current/mailer.html#disabling-delivery

@oxan
Copy link

oxan commented Sep 12, 2020

@wouterj Sorry, I was too curt with my comment. What I meant was that the sendmail DSN isn't documented anymore.

@wouterj
Copy link
Member Author

wouterj commented Sep 12, 2020

No problem @oxan, thanks for clarifying :) I think I removed it in favor of this section https://symfony.com/doc/current/mailer.html#transport-setup . That section doesn't explicitly say "sendmail", but what it shows (native SMTP) is in fact sendmail. If you think we should be more explicit about it, please consider hitting the "edit this page" button at the top right. (btw, from my understanding, smtp:// and smtp+sendmail:// are equal)

@oxan
Copy link

oxan commented Sep 12, 2020

@wouterj As I understand the code (I haven't actually verified this), smtp:// will connect to an SMTP server on localhost, while smtp+sendmail:// will invoke sendmail and talk SMTP over stdin to it (so it isn't necessary to have an SMTP server running). It's also possible to invoke sendmail without talking SMTP to it, but counterintuitively that is not achieved by using sendmail:// (which is indeed equal to smtp+sendmail://), but you need to explicitly specify the command as an option using sendmail://?command=/usr/sbin/sendmail -oi -t (which is also not documented). Furthermore, the note in the documentation that user, pass and port are optional implies that host isn't and you are required to specify a host.

I think it'd be ideal to have a subsection for every transport along with the required parameters and the available options, but that'd be a quite involved change.

symfony-splitter pushed a commit to symfony/mailer that referenced this pull request Sep 28, 2021
This PR was merged into the 4.4 branch.

Discussion
----------

[Mailer] Updated README for the Mailer component

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | n/a
| License       | MIT
| Doc PR        | symfony/symfony-docs#13945

I think it's worth adding a second example showcasing the twig integration for 2 reasons:

* If you're used to use this component in the framework, I think it's likely you want Twig integration in standalone apps.
* The integration actually lives in `symfony/twig-bridge`, it won't be very easy to catch while reading the component code - unless you're very comfortable with the Symfony architecture.

Commits
-------

696560c690 Updated README for the Mailer component
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.

6 participants