CSMSFile
class CSMSFile (View source)
Class to send SMS Usage: $smsfile = new CSMSFile($subject,$sendto,$replyto,$message,$filepath,$mimetype,$filename,$cc,$ccc,$deliveryreceipt,$msgishtml,$errors_to); $smsfile->socid=...; $smsfile->contact_id=...; $smsfile->member_id=...; $smsfile->fk_project=...; $smsfile->sendfile();
Properties
| DoliDB | $db | ||
| string | $error | ||
| string[] | $errors | ||
| string | $eol | ||
| string | $addr_from | ||
| string | $addr_to | ||
| int | $deferred | ||
| int | $priority | ||
| int | $class | ||
| string | $message | ||
| bool | $nostop | ||
| int | $socid | ||
| int | $contact_id | ||
| int | $member_id | ||
| int | $fk_project | ||
| int | $deliveryreceipt |
Methods
CSMSFile
Send SMS that was prepared by constructor
Write content of a SendSms request into a dump file (mode = all) Used for debugging.
Write content of a SendSms result into a dump file (mode = all) Used for debugging.
Details
__construct(string $to, string $from, string $msg, int $deliveryreceipt = 0, int $deferred = 0, int $priority = 3, int $class = 1)
CSMSFile
bool
sendfile()
Send SMS that was prepared by constructor
dump_sms()
Write content of a SendSms request into a dump file (mode = all) Used for debugging.
@return void
void
dump_sms_result($result)
Write content of a SendSms result into a dump file (mode = all) Used for debugging.
@param int $result Result of sms sending