Skip to content

Add URL-encoding notice #9824

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 2 commits into from
May 27, 2018
Merged

Add URL-encoding notice #9824

merged 2 commits into from
May 27, 2018

Conversation

nebkam
Copy link
Contributor

@nebkam nebkam commented May 26, 2018

I've had trouble connecting to Amazon SES via recommended method.
I kept getting:

Exception occurred while flushing email queue: Failed to authenticate on SMTP server with username "***"
I've traced it to "+" sign in the password that Amazon SES automatically assigned to my SMTP credentials.
I had a hunch that special characters might be a problem and was thinking along the lines of wrapping the whole MAILER_URL value in single quotes.
Then I ran into https://stackoverflow.com/a/50498999/1419874 that solved the issue for me too.
Since the OP lost 3hrs and myself almost an hour, I think URL encoding might not be so obvious.
Hence I propose this change. I've intentionally put it at the top, since I think it applies to any method that has special characters in username/password, not just Amazon SES.

I've had trouble connecting to Amazon SES via recommended method.
I kept getting: 
> Exception occurred while flushing email queue: Failed to authenticate on SMTP server with username "***"
I've traced it to "+" sign in the password that Amazon SES automatically assigned to my SMTP credentials.
I had a hunch that special characters might be a problem and was thinking along the lines of wrapping the whole MAILER_URL value in single quotes.
Then I ran into https://stackoverflow.com/a/50498999/1419874 that solved the issue for me too.
Since the OP lost 3hrs and myself almost an hour, I think URL encoding might not be so obvious.
Hence I propose this change. I've intentionally put it at the top, since I think it applies to any method that has special characters in username/password, not just Amazon SES.
@javiereguiluz
Copy link
Member

@nebkam thanks a lot for this! I'm sorry this made you lose some time. Let's reword this to show it more clearly to the readers.

@javiereguiluz
Copy link
Member

Thanks @nebkam.

@javiereguiluz javiereguiluz merged commit 7f72a6f into symfony:4.0 May 27, 2018
javiereguiluz added a commit that referenced this pull request May 27, 2018
This PR was merged into the 4.0 branch.

Discussion
----------

Add URL-encoding notice

I've had trouble connecting to Amazon SES via recommended method.
I kept getting:
> Exception occurred while flushing email queue: Failed to authenticate on SMTP server with username "***"
I've traced it to "+" sign in the password that Amazon SES automatically assigned to my SMTP credentials.
I had a hunch that special characters might be a problem and was thinking along the lines of wrapping the whole MAILER_URL value in single quotes.
Then I ran into https://stackoverflow.com/a/50498999/1419874 that solved the issue for me too.
Since the OP lost 3hrs and myself almost an hour, I think URL encoding might not be so obvious.
Hence I propose this change. I've intentionally put it at the top, since I think it applies to any method that has special characters in username/password, not just Amazon SES.

<!--

If your pull request fixes a BUG, use the oldest maintained branch that contains
the bug (see https://symfony.com/roadmap for the list of maintained branches).

If your pull request documents a NEW FEATURE, use the same Symfony branch where
the feature was introduced (and `master` for features of unreleased versions).

-->

Commits
-------

7f72a6f Reword
61a69ac Add URL-encoding notice
@nebkam nebkam deleted the patch-2 branch May 27, 2018 12:24
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.

3 participants