cb_sendEmail
Send an email to one or more recipients from Clientbill.
Request
| string | $auth_string | Your authentication token returned from cb_setAuthCredentials() |
| string | $subject | The subject of the email. No HTML or newline characters are allowed in this parameter. |
| string | $message | The message body of the email, this may contain HTML and newline characters. |
| string array |
$email_address | This parameter can either be a string (single email address) or an array of email addresses. |
Response
No response is generated by this function call
cb_sendTemplateEmail
Send an email to one or more recipients from Clientbill using one of the predefined Clientbill email templates.
Request
| string | $auth_string | Your authentication token returned from cb_setAuthCredentials() |
| string | $email_tpl | The predefined Clientbill email template |
| string array |
$email_addr | This parameter can either be a string (single email address) or an array of email addresses. |
| string | $email_vars |
optional; An array of variables to be parsed into the template. An example of using variables in templates: $email_vars = array( 'first_name' => 'John', 'last_name' => 'Doe' ); Using the given $email_vars array, two variables, {FIRST_NAME} and {LAST_NAME}, will be replaced with the text 'John' and 'Doe' in the template specified. |
Response
No response is generated by this function call
cb_sendEstimate
Send out an estimate email from a given estimate_id.
Request
| string | $auth_string | Your authentication token returned from cb_setAuthCredentials() |
| int | $estimate_id | The ID of the estimate to send |
Response
boolean email_success
cb_sendInvoice
Send out an invoice email from a given invoice_id.
Request
| string | $auth_string | Your authentication token returned from cb_setAuthCredentials() |
| int | $invoice_id | The ID of the invoice to send |
Response
boolean email_success