The parameters for the EsendexSendService constructor include optional arguments for a security certificate:
EsendexSendService( $username, $password, $account, $isSecure = false, $certificate = '' )
To send via HTTPS, use the following arguements:
$isSecure = true
$certificate = "PATH TO CERTIFICATE FILE" ( e.g. C:\Windows\curl_ca_bundle.crt )
To send via HTTP these arguments can be ignored.
For a successful request, results are in the format:
Result=OK MessageID=valuewhere MessageID value is the ID that Esendex assigned to the message.
For an unsuccessful request, results are in the format: Result=Error Message=valuewhere Message value is a URL encoded description of the error.
The parameters for the EsendexSendContentService constructor include optional arguments for a security certificate:
EsendexSendContentService( $username, $password, $account, $isSecure = false, $certificate = '' )
To send via HTTPS, use the following arguements:
$isSecure = true
$certificate = "PATH TO CERTIFICATE FILE" ( e.g. C:\Windows\curl_ca_bundle.crt )
To send via HTTP these arguments can be ignored.
For a successful request, results are in the format:
Result=OK MessageID=valuewhere MessageID value is the ID that Esendex assigned to the message.
For an unsuccessful request, results are in the format:
Result=Error Message=valuewhere Message value is a URL encoded description of the error.
The parameters for the EsendexScheduledSendService constructor include optional arguments for a security certificate:
EsendexScheduledSendService( $username, $password, $account, $isSecure = false, $certificate = '' )
To send via HTTPS, use the following arguements:
$isSecure = true
$certificate = "PATH TO CERTIFICATE FILE" ( e.g. C:\Windows\curl_ca_bundle.crt )
To send via HTTP these arguments can be ignored.
The date and time value you wish to schedule the message to be sent at can be set in two ways. You can either by specifying a specific date time the message should be sent at (by supplying a SubmitAt form post value), or by specifying a time interval in days, hours and minutes that the message should be sent in (by supplying the Days, Hours and Minutes form post values).
These methods use the same structure as the the EsendexSendService.php file methods, and additionally require a SubmitAt parameter also to be set. The format of this value should be CCYY-MM-DDThh:mm:ss where "CC" represents the century, "YY" the year, "MM" the month and "DD" the day, preceded by a leading "-" sign to indicate a negative number. The letter "T" is the date/time separator and "hh", "mm" represent hour and minute respectively.
Once again these methods use the same structure as the the EsendexSendService.php file methods, but additionally take 3 extra parameters. These parameters are days (the days component of the time interval), hours (the hours component of the time interval) and minutes (the minutes component of the time interval).
For a successful request, results are in the format:
Result=OK MessageID=value where MessageID value is the ID that Esendex assigned to the message.
For an unsuccessful request, results are in the format:
Result=Error Message=value where Message value is a URL encoded description of the error.