Skip to content
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

SMS Sender is not displayed correctly via OVH SMS Service with Sending Jobs API #135

Open
mohamedTaiebBsf opened this issue Jul 21, 2023 · 1 comment

Comments

@mohamedTaiebBsf
Copy link

mohamedTaiebBsf commented Jul 21, 2023

I successfully sent an SMS using the OVH SMS service through the Sending Jobs API (POST API: /sms/{serviceName}/jobs).

However, upon receiving the message, I noticed that the specified sender information was not taken into consideration. Instead of seeing the sender name "SOCIETY" the recipient only sees a numeric sender ID in the "from" section of the SMS.

Below is the code snippet I used for sending the SMS:

$smsServices = $ovh->get('/sms/');

$message = [
    "charset" => "UTF-8",
    "class" => "phoneDisplay",
    "coding" => "7bit",
    "message" => sprintf('SOCIETY - Code de vérification: %s', $code),
    "noStopClause" => false,
    "sender" => "SOCIETY",
    "priority" => "high",
    "receivers" => [$this->formatPhoneNumber($phoneNumber)],
    "senderForResponse" => true
];

$ovh->post('/sms/' . $smsServices[0] . '/jobs', $message);

I have verified that the payload includes the "sender" option with the desired sender name. However, it seems that the sender name is not being properly displayed to the recipients, and instead, only the numeric sender ID is shown.

I would appreciate any assistance or insights on how to resolve this issue and ensure that the sender name "SOCIETY" is correctly displayed when sending SMS messages via the OVH SMS service.

Thanks.

@Inglebard
Copy link

Hi,
I send with similar parameters.
If you want to display a number for a response, you need to set "senderForResponse" to true.
If you want to display a name but recipients won't be able to respond you need to set "senderForResponse" to false or unset and specify "sender".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants