Skip to content

Instantly share code, notes, and snippets.

@mtorromeo
Last active August 29, 2015 13:57
Show Gist options
  • Save mtorromeo/9463029 to your computer and use it in GitHub Desktop.
Save mtorromeo/9463029 to your computer and use it in GitHub Desktop.
Esempio di invio SMS Artera
<?php
//open connection
$ch = curl_init("https://www.artera.it/invio_sms_post.php");
//POST data
curl_setopt($ch, CURLOPT_POSTFIELDS, array(
"mittente" => "Foo Srl",
"username" => "NOMEUTENTE",
"password" => "PASSWORD",
"operation" => "invioSMS",
"destinatari" => "+390000000,+390000001,+390000002",
"testo" => "Esempio Messaggio SMS etc...",
));
//execute post
$result = curl_exec($ch);
//close connection
curl_close($ch);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment