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

Skip to content

[Notifier][Clicksend] Fix lack of recipient in case DSN does not have optional LIST_ID param #60588

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

Conversation

leefant
Copy link
Contributor

@leefant leefant commented May 30, 2025

Q A
Branch? 6.4
Bug fix? yes
New feature? no
Deprecations? no
Issues -
License MIT

This PR fixes an issue in the ClickSend Notifier bridge where a message would fail to send if the DSN does not include the optional LIST_ID parameter.

According to the [ClickSend API documentation] (https://developers.clicksend.com/docs/messaging/sms/other/send-sms/#request&path=messages/list_id), either the to field or a list_id must be present. In some cases, the list_id may be omitted, and the transport must fall back to the to recipient value instead.

Also added forwarding the FROM_EMAIL value to the request. Because following code in line 78 looks like typo:
$options['from_email'] ?? $this->fromEmail;

@leefant leefant requested a review from OskarStark as a code owner May 30, 2025 00:28
@carsonbot carsonbot added this to the 6.4 milestone May 30, 2025
@carsonbot
Copy link

Hey!

I see that this is your first PR. That is great! Welcome!

Symfony has a contribution guide which I suggest you to read.

In short:

  • Always add tests
  • Keep backward compatibility (see https://symfony.com/bc).
  • Bug fixes must be submitted against the lowest maintained branch where they apply (see https://symfony.com/releases)
  • Features and deprecations must be submitted against the 7.4 branch.

Review the GitHub status checks of your pull request and try to solve the reported issues. If some tests are failing, try to see if they are failing because of this change.

When two Symfony core team members approve this change, it will be merged and you will become an official Symfony contributor!
If this PR is merged in a lower version branch, it will be merged up to all maintained branches within a few days.

I am going to sit back now and wait for the reviews.

Cheers!

Carsonbot

@carsonbot carsonbot changed the title Fix: Lack of recipient in case DSN does not have optional LIST_ID param [Notifier] Fix: Lack of recipient in case DSN does not have optional LIST_ID param May 30, 2025
@OskarStark OskarStark changed the title [Notifier] Fix: Lack of recipient in case DSN does not have optional LIST_ID param [Notifier][Clicksend] Fix lack of recipient in case DSN does not have optional LIST_ID param May 30, 2025
@OskarStark
Copy link
Contributor

It looks like your commiter mail address is not associated with your GitHub account:
image

…ameter.

According to https://developers.clicksend.com/docs/messaging/sms/other/send-sms#other/send-sms/t=request&path=messages/list_id
we need to provide the "to" parameter or the "list_id" parameter.
Also fixed forwarding FROM_EMAIL parameter to request.
@nicolas-grekas nicolas-grekas force-pushed the fix-lack-of-recipient-without-dsn-optional-param branch from 03a8fd2 to 207e2f9 Compare May 30, 2025 07:50
@nicolas-grekas
Copy link
Member

Thank you @leefant.

@nicolas-grekas nicolas-grekas merged commit 174c892 into symfony:6.4 May 30, 2025
10 of 11 checks passed
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