mass_mail
public class mass_mail
| Method Summary | |
|---|---|
| array | Get all active campaigns |
| integer|boolean | add_campaign(string name, integer customer_area_id, integer transport_id, string rules, string send, string per_schedule, string periodic_schedule, string max_per_hour, string status) Add a new mass campaign |
| integer|boolean | add_list(string name, string customer_type, string user_type, string ignore_opt_out) Add a new mass mail list |
| boolean | assign_list(integer list_id, integer campaign_id) Add a new e-mail list to a campaign |
| boolean | campaign_unique(integer user_id, integer campaign_id) Set the campaign as queued |
| array | compile_list(string product_specific, string customer_type, string user_type, string ignore_opt_out, array products_filter, array opt_out, integer list_id, integer campaign_id, string rules) Send mass mail! |
| boolean | delete_campaign(integer id) Delete a mass e-mail campaign |
| boolean | delete_list(integer id) Delete a mass e-mail list |
| boolean | filter_by(integer list_id, integer sku_id) Add product sku filter to a list |
| array | filtered_products(integer list_id) Get a list of all filtered products for the e-mail list |
| array | get_all_campaigns_wp(string sort, array link_extras) Get a list of all e-mail campaigns with pagination |
| array | get_all_email_lists_wp(string sort, array link_extras) Get a list of all e-mail lists with pagination |
| array | get_all_lists(string sort, array link_extras) Get a list of all e-mail lists with pagination |
| array | get_assigned_lists(integer campaign_id, boolean full_record_set) Get a list of all assigned e-mail lists to the campaign |
| array|boolean | get_campaign(integer id) Get campaign data |
| array|boolean | get_campaign_by_token(string token) Get campaign data |
| array|boolean | get_list(integer id) Get list data |
| array | get_lists(integer campaign_id, boolean full_record_set) Get a list of all assigned e-mail lists to the campaign |
| array | Get all users who have opt-out |
| boolean | is_campaign_complete(integer campaign_id) Is the campaign complete? |
| boolean | is_campaign_queued(integer campaign_id, string status) Get all queued campaigns |
| boolean | opt_out(string email) Opt-out the user |
| array | Get all queued campaigns |
| boolean | remove_filter(integer list_id, integer sku_id) Remove product sku filter from a list |
| boolean | remove_list(integer list_id, integer campaign_id) Remove a list from a campaign |
| boolean | save_campaign(string id, string name, integer customer_area_id, integer transport_id, string rules, string send, string per_schedule, string per_schedule_time, string periodic_schedule, string periodic_schedule_time, string max_per_hour, string status) Save new mass campaign advanced settings |
| boolean | save_campaign_copy(integer id, string subject, string message, string alt_body_message) Save the e-mail copy |
| boolean | save_list(integer id, string name, string product_specific, string customer_type, string user_type, string ignore_opt_out) Save changes to an existing list |
| boolean | send(integer customer_area_id, integer transport_id, string subject, string message, string alt_body_message, string valid_tags, string tag_values) Send mass mail! |
| array | send_campaign(integer campaign_id, integer max_per_hour) Get all messages ready to be sent from the log |
| boolean | send_test(array session, array campaign, string valid_tags) Send mass mail campaign test |
| boolean | set_queued(integer campaign_id) Set the campaign as queued |
| array | total_recipients(array campaign) Get the total recipients |
| array | total_recipients_enqueue(integer campaign_id) Get the total recipients based on the queue |
| boolean | write_complete(integer campaign_id) Mark the campaign as complete |
| boolean | write_last_run(integer campaign_id) Set the campaign last run date |
| boolean | write_last_run_queued(integer campaign_id) Set the campaign last run date |
| boolean | write_to_queue(integer customer_area_id, integer customer_id, integer user_id, integer campaign_id, integer list_id, string first_name, string last_name, string email) Write the mass mail queue |
| boolean | write_to_queue_complete(integer customer_id, integer user_id, integer campaign_id, integer list_id, string email) Set a queue entry to complete |
public array active_campaigns()
Get all active campaigns
public integer|boolean add_campaign(string name, integer customer_area_id, integer transport_id, string rules, string send, string per_schedule, string periodic_schedule, string max_per_hour, string status)
Add a new mass campaign
public integer|boolean add_list(string name, string customer_type, string user_type, string ignore_opt_out)
Add a new mass mail list
public boolean assign_list(integer list_id, integer campaign_id)
Add a new e-mail list to a campaign
public boolean campaign_unique(integer user_id, integer campaign_id)
Set the campaign as queued
public array compile_list(string product_specific, string customer_type, string user_type, string ignore_opt_out, array products_filter, array opt_out, integer list_id, integer campaign_id, string rules)
Send mass mail!
public boolean delete_campaign(integer id)
Delete a mass e-mail campaign
public boolean delete_list(integer id)
Delete a mass e-mail list
public boolean filter_by(integer list_id, integer sku_id)
Add product sku filter to a list
public array filtered_products(integer list_id)
Get a list of all filtered products for the e-mail list
public array get_all_campaigns_wp(string sort, array link_extras)
Get a list of all e-mail campaigns with pagination
public array get_all_email_lists_wp(string sort, array link_extras)
Get a list of all e-mail lists with pagination
public array get_all_lists(string sort, array link_extras)
Get a list of all e-mail lists with pagination
public array get_assigned_lists(integer campaign_id, boolean full_record_set)
Get a list of all assigned e-mail lists to the campaign
public array|boolean get_campaign(integer id)
Get campaign data
public array|boolean get_campaign_by_token(string token)
Get campaign data
public array|boolean get_list(integer id)
Get list data
public array get_lists(integer campaign_id, boolean full_record_set)
Get a list of all assigned e-mail lists to the campaign
public array get_opt_out()
Get all users who have opt-out
public boolean is_campaign_complete(integer campaign_id)
Is the campaign complete?
public boolean is_campaign_queued(integer campaign_id, string status)
Get all queued campaigns
public boolean opt_out(string email)
Opt-out the user
public array queued_campaigns()
Get all queued campaigns
public boolean remove_filter(integer list_id, integer sku_id)
Remove product sku filter from a list
public boolean remove_list(integer list_id, integer campaign_id)
Remove a list from a campaign
public boolean save_campaign(string id, string name, integer customer_area_id, integer transport_id, string rules, string send, string per_schedule, string per_schedule_time, string periodic_schedule, string periodic_schedule_time, string max_per_hour, string status)
Save new mass campaign advanced settings
public boolean save_campaign_copy(integer id, string subject, string message, string alt_body_message)
Save the e-mail copy
public boolean save_list(integer id, string name, string product_specific, string customer_type, string user_type, string ignore_opt_out)
Save changes to an existing list
public boolean send(integer customer_area_id, integer transport_id, string subject, string message, string alt_body_message, string valid_tags, string tag_values)
Send mass mail!
public array send_campaign(integer campaign_id, integer max_per_hour)
Get all messages ready to be sent from the log
public boolean send_test(array session, array campaign, string valid_tags)
Send mass mail campaign test
public boolean set_queued(integer campaign_id)
Set the campaign as queued
public array total_recipients(array campaign)
Get the total recipients
public array total_recipients_enqueue(integer campaign_id)
Get the total recipients based on the queue
public boolean write_complete(integer campaign_id)
Mark the campaign as complete
public boolean write_last_run(integer campaign_id)
Set the campaign last run date
public boolean write_last_run_queued(integer campaign_id)
Set the campaign last run date
public boolean write_to_queue(integer customer_area_id, integer customer_id, integer user_id, integer campaign_id, integer list_id, string first_name, string last_name, string email)
Write the mass mail queue
public boolean write_to_queue_complete(integer customer_id, integer user_id, integer campaign_id, integer list_id, string email)
Set a queue entry to complete
SPBAS Mass Mail