mailing_info_get
php
array mailing_info_get(number $nr_wysylki)Returns an array with general information about completed or scheduled mailing $nr_wysylki. Returns false if no mailing information is found. The returned array uses the following keys:
- [wysyłka] - mailing ID
- [newsletter ] - ID of the newsletter in SARE
- [campaign] - ID of the campaign assigned to the mailing (0 if none)
- [groups] - array of group IDs targeted by the mailing. These are the IDs at the time of sending and may differ from the current ones (e.g. after a group has been renamed)
- [type] - mailing type
- [encoding] - encoding of the sent newsletter
- [format_txt] - message format used for recipients marked as accepting plain-text messages only: txt or txt, html
- [from] - From (sender) field of the mailing
- [replyto] - Reply-To field of the mailing
- [subject] - Subject field of the mailing
- [use_name] - 1 if “Use the Name field as the recipient” was enabled for the mailing, otherwise 0
- [GA_string] - string appended to tracked links (e.g. Google Analytics)
- [filterSQL] - ID of the assigned SQL filter
- [filterSS] - ID of the assigned SAREscript filter
- [date] - mailing start date and time as a timestamp
- [sent] - number of sent emails
- [bounced] - number of bounces
- [opened] - number of opens
- [opted_out] - number of unsubscribes
- [clicked] - number of clicks
- [opened_nu] - number of non-unique opens
- [clicked_nu] - number of non-unique clicks
- [in_progress] - whether sending is in progress
- [comment] - comment
- [smime] - whether the mailing was authenticated
- [trace_openings] - 1 if open tracking was enabled, otherwise 0;
- [trace_clicks] - 1 if click tracking was enabled, otherwise 0;
- [attached_images] - 1 if images were attached to the mailing, or 0 if images were hosted on the server;
Example:
php
$get_info = mailing_info_get(31);
print_r($get_info);Result:
Array
(
[wysylka] => 31
[newsletter] => 130
[campaign] => 0
[groups] => Array
(
[0] => 5
)
[type] => 2
[encoding] => UTF-8
[format_txt] => txt
[format] => txt,html
[from] => "adres@sare.pl" <adres@sare.pl>
[replyto] =>
[subject] => tag
[use_name] => 0
[GA_string] =>
[filterSQL] =>
[filterSS] =>
[date] => 1505918343
[sent] => 5
[bounced] => 1
[opened] => 1
[opted_out] => 0
[clicked] => 1
[opened_nu] => 3
[clicked_nu] => 3
[in_progress] => 0
[comment] =>
[smime] => 0
[trace_openings] => 1
[trace_clicks] => 1
[trace_txt_clicks] => 0
[attached_images] => 0
)