So with mautic 5, we get ‘mailer_dsn’ => 'smtp: instead of the traditional settings. If you try to configure this in the UI and your password has a special character, like f.e blankspace , it won’t simply work as it will replace it by some incorrect character.
The solution is to edit the password manually in local.php file, located in app/config/ or /config with the correct url-encoded characters. Also you need double %% instead of single %.
Hope you save some time
1 Like
dirk_s
November 6, 2024, 9:53pm
2
Thanks for the workaround and your report on github. I commented on it, as it seems to be a duplicate of this issue:
opened 08:02PM - 15 Jan 24 UTC
T2
bug
queue
hacktoberfest
mautic-5
### Mautic Version
5.0.x series
### PHP version
8.1
### What browsers are yo… u seeing the problem on?
Not relevant
### What happened?
I believe there is a problem in setting up the queue for email using Amazon SQS. If I get a secret_key that includes any special character i.e. / o + then at the moment the secret is retrieved a % is appended to this character (in the config/local.php), even after parsing it gets the wrong secret to the SQS and obviously it doesnt verify.
Workaround: try to get secret_key without special characters.
### How can we reproduce this issue?
Configure sqs scheme in the queue, use any special character in the secret
Scheme: sqs
Host: default
Port: empty
Path: empty
User: empty
Password: empty
Options:
access_key: (amazon access key)
account: (amazon account)
auto_setup: false
queue_name: (name of the queue)
secret_key: (amazon secret key)
region: us-east-1
### Relevant log output
_No response_
### Code of Conduct
- [X] I confirm that I have read and agree to follow this project's Code of Conduct
<br /><hr>
Care about this issue? Want to get it resolved sooner? If you are a <a href='https://www.mautic.org/become-a-member-of-mautic'>member of Mautic</a>, you can add some funds to the <a href='https://opencollective.com/mautic/projects/bounties'>Bounties Project</a> so that the person who completes this task can claim those funds once it is merged by a member of the core team! Read the docs <a href='https://contribute.mautic.org/product-team/mautic-bounty-programme'>here.</a>