class-Mandrill_Rejects.html 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <meta name="generator" content="ApiGen 2.8.0" />
  6. <title>Class Mandrill_Rejects</title>
  7. <script type="text/javascript" src="resources/combined.js?394153670"></script>
  8. <script type="text/javascript" src="elementlist.js?882160656"></script>
  9. <link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
  10. </head>
  11. <body>
  12. <div id="left">
  13. <div id="menu">
  14. <a href="index.html" title="Overview"><span>Overview</span></a>
  15. <div id="groups">
  16. <h3>Namespaces</h3>
  17. <ul>
  18. <li class="active"><a href="namespace-None.html">None</a>
  19. </li>
  20. <li><a href="namespace-PHP.html">PHP</a>
  21. </li>
  22. </ul>
  23. </div>
  24. <hr />
  25. <div id="elements">
  26. <h3>Classes</h3>
  27. <ul>
  28. <li><a href="class-Mandrill.html">Mandrill</a></li>
  29. <li><a href="class-Mandrill_Exports.html">Mandrill_Exports</a></li>
  30. <li><a href="class-Mandrill_Inbound.html">Mandrill_Inbound</a></li>
  31. <li><a href="class-Mandrill_Internal.html">Mandrill_Internal</a></li>
  32. <li><a href="class-Mandrill_Ips.html">Mandrill_Ips</a></li>
  33. <li><a href="class-Mandrill_Messages.html">Mandrill_Messages</a></li>
  34. <li><a href="class-Mandrill_Metadata.html">Mandrill_Metadata</a></li>
  35. <li class="active"><a href="class-Mandrill_Rejects.html">Mandrill_Rejects</a></li>
  36. <li><a href="class-Mandrill_Senders.html">Mandrill_Senders</a></li>
  37. <li><a href="class-Mandrill_Subaccounts.html">Mandrill_Subaccounts</a></li>
  38. <li><a href="class-Mandrill_Tags.html">Mandrill_Tags</a></li>
  39. <li><a href="class-Mandrill_Templates.html">Mandrill_Templates</a></li>
  40. <li><a href="class-Mandrill_Urls.html">Mandrill_Urls</a></li>
  41. <li><a href="class-Mandrill_Users.html">Mandrill_Users</a></li>
  42. <li><a href="class-Mandrill_Webhooks.html">Mandrill_Webhooks</a></li>
  43. <li><a href="class-Mandrill_Whitelists.html">Mandrill_Whitelists</a></li>
  44. </ul>
  45. <h3>Exceptions</h3>
  46. <ul>
  47. <li><a href="class-Mandrill_Error.html">Mandrill_Error</a></li>
  48. <li><a href="class-Mandrill_HttpError.html">Mandrill_HttpError</a></li>
  49. <li><a href="class-Mandrill_Invalid_CustomDNS.html">Mandrill_Invalid_CustomDNS</a></li>
  50. <li><a href="class-Mandrill_Invalid_CustomDNSPending.html">Mandrill_Invalid_CustomDNSPending</a></li>
  51. <li><a href="class-Mandrill_Invalid_DeleteDefaultPool.html">Mandrill_Invalid_DeleteDefaultPool</a></li>
  52. <li><a href="class-Mandrill_Invalid_DeleteNonEmptyPool.html">Mandrill_Invalid_DeleteNonEmptyPool</a></li>
  53. <li><a href="class-Mandrill_Invalid_EmptyDefaultPool.html">Mandrill_Invalid_EmptyDefaultPool</a></li>
  54. <li><a href="class-Mandrill_Invalid_Key.html">Mandrill_Invalid_Key</a></li>
  55. <li><a href="class-Mandrill_Invalid_Reject.html">Mandrill_Invalid_Reject</a></li>
  56. <li><a href="class-Mandrill_Invalid_Tag_Name.html">Mandrill_Invalid_Tag_Name</a></li>
  57. <li><a href="class-Mandrill_Invalid_Template.html">Mandrill_Invalid_Template</a></li>
  58. <li><a href="class-Mandrill_IP_ProvisionLimit.html">Mandrill_IP_ProvisionLimit</a></li>
  59. <li><a href="class-Mandrill_Metadata_FieldLimit.html">Mandrill_Metadata_FieldLimit</a></li>
  60. <li><a href="class-Mandrill_NoSendingHistory.html">Mandrill_NoSendingHistory</a></li>
  61. <li><a href="class-Mandrill_PaymentRequired.html">Mandrill_PaymentRequired</a></li>
  62. <li><a href="class-Mandrill_PoorReputation.html">Mandrill_PoorReputation</a></li>
  63. <li><a href="class-Mandrill_ServiceUnavailable.html">Mandrill_ServiceUnavailable</a></li>
  64. <li><a href="class-Mandrill_Unknown_Export.html">Mandrill_Unknown_Export</a></li>
  65. <li><a href="class-Mandrill_Unknown_InboundDomain.html">Mandrill_Unknown_InboundDomain</a></li>
  66. <li><a href="class-Mandrill_Unknown_InboundRoute.html">Mandrill_Unknown_InboundRoute</a></li>
  67. <li><a href="class-Mandrill_Unknown_IP.html">Mandrill_Unknown_IP</a></li>
  68. <li><a href="class-Mandrill_Unknown_Message.html">Mandrill_Unknown_Message</a></li>
  69. <li><a href="class-Mandrill_Unknown_MetadataField.html">Mandrill_Unknown_MetadataField</a></li>
  70. <li><a href="class-Mandrill_Unknown_Pool.html">Mandrill_Unknown_Pool</a></li>
  71. <li><a href="class-Mandrill_Unknown_Sender.html">Mandrill_Unknown_Sender</a></li>
  72. <li><a href="class-Mandrill_Unknown_Subaccount.html">Mandrill_Unknown_Subaccount</a></li>
  73. <li><a href="class-Mandrill_Unknown_Template.html">Mandrill_Unknown_Template</a></li>
  74. <li><a href="class-Mandrill_Unknown_TrackingDomain.html">Mandrill_Unknown_TrackingDomain</a></li>
  75. <li><a href="class-Mandrill_Unknown_Url.html">Mandrill_Unknown_Url</a></li>
  76. <li><a href="class-Mandrill_Unknown_Webhook.html">Mandrill_Unknown_Webhook</a></li>
  77. <li><a href="class-Mandrill_ValidationError.html">Mandrill_ValidationError</a></li>
  78. </ul>
  79. </div>
  80. </div>
  81. </div>
  82. <div id="splitter"></div>
  83. <div id="right">
  84. <div id="rightInner">
  85. <form id="search">
  86. <input type="hidden" name="cx" value="" />
  87. <input type="hidden" name="ie" value="UTF-8" />
  88. <input type="text" name="q" class="text" />
  89. <input type="submit" value="Search" />
  90. </form>
  91. <div id="navigation">
  92. <ul>
  93. <li>
  94. <a href="index.html" title="Overview"><span>Overview</span></a>
  95. </li>
  96. <li>
  97. <a href="namespace-None.html" title="Summary of None"><span>Namespace</span></a>
  98. </li>
  99. <li class="active">
  100. <span>Class</span> </li>
  101. </ul>
  102. <ul>
  103. <li>
  104. <a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
  105. </li>
  106. </ul>
  107. <ul>
  108. </ul>
  109. </div>
  110. <div id="content" class="class">
  111. <h1>Class Mandrill_Rejects</h1>
  112. <div class="info">
  113. <b>Located at</b> <a href="source-class-Mandrill_Rejects.html#3-78" title="Go to source code">Mandrill/Rejects.php</a><br />
  114. </div>
  115. <table class="summary" id="methods">
  116. <caption>Methods summary</caption>
  117. <tr data-order="__construct" id="___construct">
  118. <td class="attributes"><code>
  119. public
  120. </code>
  121. </td>
  122. <td class="name"><div>
  123. <a class="anchor" href="#___construct">#</a>
  124. <code><a href="source-class-Mandrill_Rejects.html#4-6" title="Go to source code">__construct</a>( <span><code><a href="class-Mandrill.html">Mandrill</a></code> <var>$master</var></span> )</code>
  125. <div class="description short">
  126. </div>
  127. <div class="description detailed hidden">
  128. </div>
  129. </div></td>
  130. </tr>
  131. <tr data-order="add" id="_add">
  132. <td class="attributes"><code>
  133. public
  134. struct
  135. </code>
  136. </td>
  137. <td class="name"><div>
  138. <a class="anchor" href="#_add">#</a>
  139. <code><a href="source-class-Mandrill_Rejects.html#8-23" title="Go to source code">add</a>( <span>string <var>$email</var></span>, <span>string <var>$comment</var> = <span class="php-keyword1">null</span></span>, <span>string <var>$subaccount</var> = <span class="php-keyword1">null</span></span> )</code>
  140. <div class="description short">
  141. <p>Adds an email to your email rejection blacklist. Addresses that you add
  142. manually will never expire and there is no reputation penalty for removing them
  143. from your blacklist. Attempting to blacklist an address that has been
  144. whitelisted will have no effect.</p>
  145. </div>
  146. <div class="description detailed hidden">
  147. <p>Adds an email to your email rejection blacklist. Addresses that you add
  148. manually will never expire and there is no reputation penalty for removing them
  149. from your blacklist. Attempting to blacklist an address that has been
  150. whitelisted will have no effect.</p>
  151. <h4>Parameters</h4>
  152. <div class="list"><dl>
  153. <dt><var>$email</var></dt>
  154. <dd><code>string</code><br>$email an email address to block</dd>
  155. <dt><var>$comment</var></dt>
  156. <dd><code>string</code><br>$comment an optional comment describing the rejection</dd>
  157. <dt><var>$subaccount</var></dt>
  158. <dd><code>string</code><br>$subaccount an optional unique identifier for the subaccount to limit the
  159. blacklist entry</dd>
  160. </dl></div>
  161. <h4>Returns</h4>
  162. <div class="list">
  163. <code>struct</code><br>a status object containing the address and the result of the operation - email
  164. string the email address you provided - added boolean whether the operation
  165. succeeded<br />
  166. </div>
  167. </div>
  168. </div></td>
  169. </tr>
  170. <tr data-order="getList" id="_getList">
  171. <td class="attributes"><code>
  172. public
  173. array
  174. </code>
  175. </td>
  176. <td class="name"><div>
  177. <a class="anchor" href="#_getList">#</a>
  178. <code><a href="source-class-Mandrill_Rejects.html#25-60" title="Go to source code">getList</a>( <span>string <var>$email</var> = <span class="php-keyword1">null</span></span>, <span>boolean <var>$include_expired</var> = <span class="php-keyword1">false</span></span>, <span>string <var>$subaccount</var> = <span class="php-keyword1">null</span></span> )</code>
  179. <div class="description short">
  180. <p>Retrieves your email rejection blacklist. You can provide an email address to
  181. limit the results. Returns up to 1000 results. By default, entries that have
  182. expired are excluded from the results; set include_expired to true to include
  183. them.</p>
  184. </div>
  185. <div class="description detailed hidden">
  186. <p>Retrieves your email rejection blacklist. You can provide an email address to
  187. limit the results. Returns up to 1000 results. By default, entries that have
  188. expired are excluded from the results; set include_expired to true to include
  189. them.</p>
  190. <h4>Parameters</h4>
  191. <div class="list"><dl>
  192. <dt><var>$email</var></dt>
  193. <dd><code>string</code><br>$email an optional email address to search by</dd>
  194. <dt><var>$include_expired</var></dt>
  195. <dd><code>boolean</code><br>$include_expired whether to include rejections that have already expired.</dd>
  196. <dt><var>$subaccount</var></dt>
  197. <dd><code>string</code><br>$subaccount an optional unique identifier for the subaccount to limit the
  198. blacklist</dd>
  199. </dl></div>
  200. <h4>Returns</h4>
  201. <div class="list">
  202. <code>array</code><br>Up to 1000 rejection entries - return[] struct the information for each
  203. rejection blacklist entry - email string the email that is blocked - reason
  204. string the type of event (hard-bounce, soft-bounce, spam, unsub) that caused
  205. this rejection - detail string extended details about the event, such as the
  206. SMTP diagnostic for bounces or the comment for manually-created rejections -
  207. created_at string when the email was added to the blacklist - last_event_at
  208. string the timestamp of the most recent event that either created or renewed
  209. this rejection - expires_at string when the blacklist entry will expire (this
  210. may be in the past) - expired boolean whether the blacklist entry has expired -
  211. sender struct the sender that this blacklist entry applies to, or null if none.
  212. - address string the sender's email address - created_at string the date and
  213. time that the sender was first seen by Mandrill as a UTC date string in
  214. YYYY-MM-DD HH:MM:SS format - sent integer the total number of messages sent by
  215. this sender - hard_bounces integer the total number of hard bounces by messages
  216. by this sender - soft_bounces integer the total number of soft bounces by
  217. messages by this sender - rejects integer the total number of rejected messages
  218. by this sender - complaints integer the total number of spam complaints received
  219. for messages by this sender - unsubs integer the total number of unsubscribe
  220. requests received for messages by this sender - opens integer the total number
  221. of times messages by this sender have been opened - clicks integer the total
  222. number of times tracked URLs in messages by this sender have been clicked -
  223. unique_opens integer the number of unique opens for emails sent for this sender
  224. - unique_clicks integer the number of unique clicks for emails sent for this
  225. sender - subaccount string the subaccount that this blacklist entry applies to,
  226. or null if none.<br />
  227. </div>
  228. </div>
  229. </div></td>
  230. </tr>
  231. <tr data-order="delete" id="_delete">
  232. <td class="attributes"><code>
  233. public
  234. struct
  235. </code>
  236. </td>
  237. <td class="name"><div>
  238. <a class="anchor" href="#_delete">#</a>
  239. <code><a href="source-class-Mandrill_Rejects.html#62-76" title="Go to source code">delete</a>( <span>string <var>$email</var></span>, <span>string <var>$subaccount</var> = <span class="php-keyword1">null</span></span> )</code>
  240. <div class="description short">
  241. <p>Deletes an email rejection. There is no limit to how many rejections you can
  242. remove from your blacklist, but keep in mind that each deletion has an affect on
  243. your reputation.</p>
  244. </div>
  245. <div class="description detailed hidden">
  246. <p>Deletes an email rejection. There is no limit to how many rejections you can
  247. remove from your blacklist, but keep in mind that each deletion has an affect on
  248. your reputation.</p>
  249. <h4>Parameters</h4>
  250. <div class="list"><dl>
  251. <dt><var>$email</var></dt>
  252. <dd><code>string</code><br>$email an email address</dd>
  253. <dt><var>$subaccount</var></dt>
  254. <dd><code>string</code><br>$subaccount an optional unique identifier for the subaccount to limit the
  255. blacklist deletion</dd>
  256. </dl></div>
  257. <h4>Returns</h4>
  258. <div class="list">
  259. <code>struct</code><br>a status object containing the address and whether the deletion succeeded. -
  260. email string the email address that was removed from the blacklist - deleted
  261. boolean whether the address was deleted successfully. - subaccount string the
  262. subaccount blacklist that the address was removed from, if any<br />
  263. </div>
  264. </div>
  265. </div></td>
  266. </tr>
  267. </table>
  268. </div>
  269. <div id="footer">
  270. API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
  271. </div>
  272. </div>
  273. </div>
  274. </body>
  275. </html>