Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Create mailBody with only attachments part present #32814

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 4, 2019

Conversation

srsbiz
Copy link
Contributor

@srsbiz srsbiz commented Jul 30, 2019

Q A
Branch? 4.3
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #32811
License MIT

@fabpot
Copy link
Member

fabpot commented Aug 3, 2019

It looks like an edge case to me. I think that you should be explicit about the "empty" body by using ->text('') explicitly. So, I'm 👎 for this change.

@srsbiz
Copy link
Contributor Author

srsbiz commented Aug 3, 2019

I think that you should be explicit about the "empty" body by using ->text('') explicitly.

This creates first - empty part of mime message which does not work for me - one application I'm maintaining exchanges data with other service via email - and this have to be only one attachment with specific title.

Currently app relies on swiftmailer, where adding attachment creates only one part - as expected.

Copy link
Member

@fabpot fabpot left a comment

Choose a reason for hiding this comment

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

Ok, fair enough, I've added some minor comments.

@fabpot fabpot force-pushed the mime-only-attachments branch from 0752ee5 to b500f92 Compare August 4, 2019 12:19
@fabpot
Copy link
Member

fabpot commented Aug 4, 2019

Thank you @srsbiz.

@fabpot fabpot merged commit b500f92 into symfony:4.3 Aug 4, 2019
fabpot added a commit that referenced this pull request Aug 4, 2019
This PR was squashed before being merged into the 4.3 branch (closes #32814).

Discussion
----------

Create mailBody with only attachments part present

| Q             | A
| ------------- | ---
| Branch?       | 4.3
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #32811
| License       | MIT

Commits
-------

b500f92 Create mailBody with only attachments part present
@fabpot fabpot mentioned this pull request Aug 26, 2019
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