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

__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.

void
dump_sms_result($result)

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

Parameters

string $to

Recipients SMS

string $from

Sender SMS

string $msg Message
int $deliveryreceipt

Not used

int $deferred

Deferred or not

int $priority Priority
int $class Class

bool sendfile()

Send SMS that was prepared by constructor

Return Value

bool

True if SMS sent, false otherwise

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

Parameters

$result

Return Value

void