SMS - API sms statut toujours en "no template available"
... / API sms statut toujours e...
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
Frage

API sms statut toujours en "no template available"

Von
Gmalz
Erstellungsdatum 2024-12-24 21:36:59 (edited on 2025-03-11 16:27:15) in SMS

Bonjour,

ça fait depuis un bon mois que je tente d'envoyer des sms contenant une à plusieurs url mais rien y fait, j'ai toujours le statut "no template available".

J'effectue l'envoi en faisant un appel vers l'api d'ovh depuis du php et voici la configuration que j'utilise pour cela:

$content = [
    "charset" => "UTF-8",
    "class" => "phoneDisplay",
    "coding" => "7bit",
    "message" => $msg,
    "noStopClause"=> true,
    "priority" => "high",
    "receivers" => [$receiver],
    "sender" => $sender,
    "senderForResponse" => false,
    "tag" => $tag,
];
$ovh->post('/sms/' . $serviceName . '/jobs', $content);

J'ai fait appel au support, et me précaunise de ne pas mettre de lien dans le body du sms (mais nous sommes au 21ème siècle) et au final ne m'a pas trouvé de solution à ma problématique.

En espérant qu'il y ait quelqu'un qui puisse m'aider.


1 Antwort ( Latest reply on 2025-04-18 07:45:39 Von
Jérôme Kasparian
)

Cf ce thread : https://community.ovhcloud.com/community/fr/envois-sms-non-delivres-no-templates-available?id=community_question&sys_id=7093394c9d1e4e901e11a21128f2cf98&view_source=searchResult

OVH bloque les SMS qui contiennent un nom d'opérateur télécom ET un lien.

Est-ce que ton message contiendrait un mot qui pourrait être interprété comme un nom d'opérateur ? Genre la couleur orange ?