dolibarr  9.0.0
Public Member Functions | List of all members
CSMSFile Class Reference

Class to send SMS Usage: $smsfile = new CSMSFile($subject,$sendto,$replyto,$message,$filepath,$mimetype,$filename,$cc,$ccc,$deliveryreceipt,$msgishtml,$errors_to); $smsfile->sendfile();. More...

Public Member Functions

 __construct ($to, $from, $msg, $deliveryreceipt=0, $deferred=0, $priority=3, $class=1)
 CSMSFile. More...
 
 sendfile ()
 Send sms that was prepared by constructor. More...
 
 dump_sms ()
 Write content of a SendSms request into a dump file (mode = all) Used for debugging. More...
 
 dump_sms_result ($result)
 Write content of a SendSms result into a dump file (mode = all) Used for debugging. More...
 

Detailed Description

Class to send SMS Usage: $smsfile = new CSMSFile($subject,$sendto,$replyto,$message,$filepath,$mimetype,$filename,$cc,$ccc,$deliveryreceipt,$msgishtml,$errors_to); $smsfile->sendfile();.

Definition at line 35 of file CSMSFile.class.php.

Constructor & Destructor Documentation

◆ __construct()

CSMSFile::__construct (   $to,
  $from,
  $msg,
  $deliveryreceipt = 0,
  $deferred = 0,
  $priority = 3,
  $class = 1 
)

CSMSFile.

Parameters
string$toRecipients SMS
string$fromSender SMS
string$msgMessage
int$deliveryreceiptNot used
int$deferredDeferred or not
int$priorityPriority
int$classClass

Definition at line 62 of file CSMSFile.class.php.

Member Function Documentation

◆ dump_sms()

CSMSFile::dump_sms ( )

Write content of a SendSms request into a dump file (mode = all) Used for debugging.

Returns
void

Definition at line 205 of file CSMSFile.class.php.

◆ dump_sms_result()

CSMSFile::dump_sms_result (   $result)

Write content of a SendSms result into a dump file (mode = all) Used for debugging.

Parameters
int$resultResult of sms sending
Returns
void

Definition at line 237 of file CSMSFile.class.php.

◆ sendfile()

CSMSFile::sendfile ( )

Send sms that was prepared by constructor.

Returns
boolean True if sms sent, false otherwise

Definition at line 97 of file CSMSFile.class.php.


The documentation for this class was generated from the following file: