Commit Graph

73 Commits

Author SHA1 Message Date
Nathan Perkins
ba8e7bda43 Throw more detailed generic HTTP error
Take advantage of new response code and body properties to allow better logging.
2014-06-16 10:40:18 -04:00
Nathan Perkins
9fe01151af Add HTTP properties to generic error
Allows generic HTTP error to accept more detailed information about the response from the server.
2014-06-16 10:38:42 -04:00
Iain Cambridge
6196f8df49 Add setMessage 2014-05-14 14:03:12 +01:00
Iain Cambridge
103fa04ede Whitespace changes. (Probably some PSR-2 stuff as well 2014-05-13 16:53:40 +01:00
Iain Cambridge
bdeadc1a01 Add tests to ensure exceptions are flung and fixed wrong variable name used 2014-05-13 16:12:32 +01:00
Iain Cambridge
35c65aaa57 Removed apiKey member since it's not used anywhere. 2014-05-13 14:59:11 +01:00
Iain Cambridge
34d8203262 Removed pointless try and catch. None of the functions threw an exception and it was just rethrowing. Also Exception didn't exist in that namespace 2014-05-13 14:58:12 +01:00
Iain Cambridge
33f3d27d7b Move fclose and unlink to before the return so they're actually called. 2014-05-13 14:57:23 +01:00
Iain Cambridge
502fac0b37 Fix fatal error in not finding exception.
Tried to throw MissingRequiredMIMEParameters which didn't exist in current namespace or added via use. Connection exceptions was included by MissingRequiredMIMEParameters is in messages exceptions so changed the added exception name to messages.

Exception message constant didn't exist. So added it.
2014-05-13 14:54:10 +01:00
Milannv
9b4668c564 Fixed typo for including an Exception 2014-03-10 13:40:59 +01:00
Travis Swientek
15f38e3737 Merge pull request #31 from travelton/ImproveOptInSecurity
Improved security of OptInHandler.
2014-02-14 10:53:02 -08:00
Travis Swientek
8d23a5bb9f This patch swaps the aggregator to "PHPAggregator" if files are included. Also added straight download. 2014-01-30 17:05:40 -08:00
Travis Swientek
717cf5faed Improved security of OptInHandler. 2014-01-24 22:07:53 +00:00
Travis Swientek
d3a0d6aed9 Fixed Guzzle post/put field aggregation. 2014-01-14 00:45:34 +00:00
Travis Swientek
af53fd50ff Ability to rename attachments and inline images. 2014-01-13 22:53:34 +00:00
Nils Magnus Englund
1b4ab0ced1 In README.md, added getFiles() reference to MessageBuilder example 2013-12-10 14:48:01 +01:00
Travis Swientek
c82fc3a578 Merge pull request #23 from travelton/DisableSSLOption
Add ability to disable SSL (backward compatible).
2013-12-02 10:30:46 -08:00
Travis Swientek
72c10a5428 Added ability to disable SSL for testing against a Postbin or other endpoint. 2013-11-30 11:47:03 -08:00
Travis Swientek
5d7daeeeca Added method to return all message ids after a BatchMessage operation. 2013-10-11 17:31:04 -07:00
Travis Swientek
af853234e4 Refactored counters, batch job trigger adjustment, all recipient types in variables. 2013-10-11 13:36:35 -07:00
Travis Swientek
fc9685182b Fixed missing IDs for batch message recipients. Closes #15. 2013-10-07 13:53:23 -07:00
Nils Magnus Englund
dc8e7fea9e Update README.md, fixed MessageBuilder example
The $domain element was not processed in the single quotes. Changed to double quotes.
2013-09-18 15:37:32 +02:00
Travis Swientek
116fb33255 Relaxed Guzzle requirement, fixed reply-to bug, updated point release version. Fixes #7 Fixes #9 2013-09-12 14:19:23 -07:00
dboggus
73de421dbe Update MessageBuilder.php
Fixed misspelling of Exceptions in use statements.
2013-09-10 09:30:17 -05:00
Travis Swientek
a624027a42 Adjusted an exception message, tagged for next point release 1.2. 2013-09-05 14:53:27 -07:00
yoye
c445c4d851 Fix typo in responseHandler 2013-09-05 15:34:17 +02:00
yoye
95cc29e56b Fix typo in responseHandler 2013-09-05 15:26:42 +02:00
yoye
947267e935 Merge branch 'master' of github.com:yoye/mailgun-php 2013-09-05 15:19:07 +02:00
yoye
4c80ff1058 Fix variables in BatchMessage:sendMessage() 2013-09-05 10:39:20 +02:00
yoye
789eb27228 Fix bug toRecipientCount increment in BatchMessage 2013-09-05 10:35:26 +02:00
Travis Swientek
9438694415 Fixes #4. DEFAULT_TIME_ZONE is not defined. 2013-09-04 09:50:50 -07:00
yoye
a1418420d0 Update MessageBuilder.php 2013-09-04 16:18:40 +02:00
Travis Swientek
24e6a01651 Added message id return to batch sending. 2013-08-21 23:11:24 -07:00
Travis Swientek
0cabcece33 Incremented SDK Version 2013-08-21 16:35:34 -07:00
Travis Swientek
f8babb0541 Fixed an issue with Exception handling. 2013-08-21 09:45:11 -07:00
Travis Swientek
d88fb82c1d ReadMe Adjustments and fixed an issue with result handler. 2013-08-20 11:10:57 -07:00
Travis Swientek
89a2e8bd09 Updated README 2013-08-19 14:56:13 -07:00
Travis Swientek
522f731929 Updated README files and fixed a bug in OptInHandler 2013-08-16 14:05:58 -07:00
Travis Swientek
143414f174 Rename README to README.md 2013-08-16 13:10:52 -07:00
Travis Swientek
4ff1184b0b README.md adjustments 2013-08-16 12:50:29 -07:00
Travis Swientek
07837600e6 Added new OptInHandler and tests. 2013-08-16 11:20:01 -07:00
Travis Swientek
41c4d31ae5 Fixed inconsistency between Batch and Builder on Add Recipient 2013-08-13 12:35:04 -07:00
Travis Swientek
685a7351d5 Refactor. Covered refactor in tests. 2013-08-13 12:26:34 -07:00
Travis Swientek
8498145b2f Adjustments 2013-08-08 16:28:02 -07:00
Travis Swientek
104bb72008 Refactor complete 2013-08-08 10:39:44 -07:00
Travis Swientek
1b3720a339 Removal of all classes. No OOP. :( 2013-08-07 17:41:14 -07:00
Travis Swientek
1ff4357810 Modified and renamed HTTPBroker to RestClient. 2013-08-07 16:22:19 -07:00
Travis Swientek
449431b5c1 Added tagging ability to MessageBuilder 2013-08-03 14:56:38 -07:00
Travis Swientek
ee2a9aece8 Fixed HTTPBroker Response and README for Stats endpoint 2013-08-03 14:20:31 -07:00
Travis Swientek
55ccc0f359 Update README.md 2013-08-02 18:02:06 -07:00