A page in your DokuWiki was added or changed. Here are the details:

Date        : 2017/08/28 15:29
Browser     : Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:54.0) Gecko/20100101 
Firefox/54.0
IP-Address  : 193.248.50.71
Hostname    : LStLambert-656-1-262-71.w193-248.abo.wanadoo.fr
Old Revision: 
http://ltb-project.org/documentation/self-service-password/1.1/config_sms?rev=1499880561
New Revision: 
http://ltb-project.org/documentation/self-service-password/1.1/config_sms
Edit Summary: 
User        : coudot

@@ -7,20 +7,70 @@
  First, the user will enter his login. With this login, SSP will try to get 
information, like name and mobile phone number.
  
  If information is found, the user can check it and confirm the sent of reset 
code trough SMS.
  
- A mail is sent to a Email to SMS gateway. This gateway will then send the 
message to the mobile phone. The user should then enter the code on SSP page, 
and can then change its password.
+ A message is sent either to an Email to SMS gateway, either trough an API 
(called with PHP code or by script)?
  
  ===== SMS provider =====
  
- You first have to choose a Email to SMS provider. Search the web to find one, 
many have a free trial so you can test the feature. You can try for example 
https://www.smsglobal.com/.
+ You first have to choose SMS provider. Search the web to find one, many have 
a free trial so you can test the feature.
+ 
+ Some known providers:
+   * Email 2 SMS:
+     * [[https://www.smsglobal.com/|SMS Global]]
+   * API:
+     * [[https://www.smsglobal.com/|SMS Global]]
+     * [[https://help-developer.smartfocus.com/|Smart Focus]]
  
  ===== Activation =====
  
  You can enable or disable this feature with $use_sms:
  <file php>
  $use_sms = true;
  </file>
+ 
+ ===== Method =====
+ 
+ Choose which method to use, mail or api:
+ <file php>
+ $sms_method = "mail";
+ </file>
+ 
+ ====== Mail ======
+ 
+ If you choose the mail method, the mail will be sent to SMS provider trough 
[[config_mail#phpmailer|PHP Mailer]] configuration.
+ 
+ You can adjust some settings here, depending on provider guidelines:
+ <file php>
+ # Send SMS mail to address
+ $smsmailto = "{sms_attribute}@service.provider.com";
+ # Subject when sending email to SMTP to SMS provider
+ $smsmail_subject = "Provider code";
+ </file>
+ 
+ ====== API ======
+ 
+ If you choose API, you need to define which library will be called:
+ <file php>
+ $sms_api_lib = "lib/smsapi.inc.php";
+ </file>
+ 
+ In this library, you must define the ''send_sms_by_api'' function:
+ <file php>
+ function send_sms_by_api($mobile, $message) {
+ 
+     # PHP code
+     # ...
+ 
+     # Or call to external script
+     # $command = escapeshellcmd(/path/to/script).' 
'.escapeshellarg($mobile).' '.escapeshellarg($message);
+     # exec($command);
+ 
+     return 1;
+ }
+ </file>
+ 
+ Read the provider guidelines to know how to access its API.
  
  ===== Mobile attribute =====
  
  Set here which LDAP attribute hold the user mobile phone:
@@ -45,9 +95,9 @@
  </file>
  
  ===== Message =====
  
- The values set here depend on the Email to SMS provider. Some require a 
specific string in mail subject, other use a specific mail body. Just adapt the 
configuration to these requirements.
+ The values set here an depend on the provider. Some require a specific string 
in mail subject, other use a specific mail body. Just adapt the configuration 
to these requirements.
  
  <file php>
  # Send SMS mail to address
  $smsmailto = "{sms_attribute}@service.provider.com";



-- 
This mail was generated by DokuWiki at
http://ltb-project.org/
_______________________________________________
ltb-changes mailing list
[email protected]
https://lists.ltb-project.org/cgi-bin/mailman/listinfo/ltb-changes

Reply via email to