Commit Graph

58 Commits

Author SHA1 Message Date
James Kraus
d2638a0457 Bug fix - Allow adding custom headers with non-array value (#255)
* Bug fix - Allow adding custom headers with non-array value

* Remove whitespace

* Functional test for adding custom headers (either singular or multiple)

* Style fixes for functional test
2017-03-26 10:23:03 +02:00
z38
b3f24e9d7a Fix setting Reply-To multiple times (#300) 2017-03-14 16:51:33 +01:00
David Garcia
b61d5291b2 Minor amends reported by Scrutinizer CI (#250)
* Scrutinizer CI: Bug

The property deserializer does not seem to exist. Did you mean
serializer?

* Scrutinizer CI: Coding Style + Best Practice

It seems like you are loosely comparing two booleans. Considering using
the strict comparison === instead.

* Scrutinizer CI: Bug

It seems like $variables defined by parameter $variables on line ???
can also be of type null; however,
Mailgun\Messages\MessageBuilder::addRecipient() does only seem to
accept array, maybe add an additional type check?

* Scrutinizer CI: Documentation

The doc-type $class|SimpleResponse could not be parsed: Unknown type
name "$class" at position 0

Adding `object` instead of `SimpleResponse` due we have no files called
`SimpleResponse` in our project, and PhpDoc provides the `object`
keyword as a valid option.

https://www.phpdoc.org/docs/latest/guides/types.html#keywords

* Scrutinizer CI: Documentation

There is no parameter named $smtpPass. Did you maybe mean $smtpPassword?

* Scrutinizer CI: Unused Code

$resource is not used, you could remove the assignment.

* Scrutinizer CI: Unused Code

The parameter $message is not used and could be removed.

* Scrutinizer CI: Unused code

This method is not used, and could be removed. (x2)

* Scrutinizer CI: Patch

Doc Comments

* Scrutinizer CI: Patch

Doc comments
2016-12-09 13:41:23 -08:00
Sean Johnson
ce8215ff6c Apply fixes from StyleCI (#243) 2016-12-06 12:12:52 -06:00
Tobias Nyholm
738e6e32e2 POC - Better api (#192)
* Added base for the new API

* code style

* Added response classes

* Added support for serializer

* The abstract API should not know of Mailgun

* Minor

* minor

* Using a client configrator

* code style

* Put HTTPClient in the configurator

* Do not use the api() function

* Use stable version of Assert

* style

* Fixed tests

* make the httpClient private

* Renamed ResponseSerializer to ResponseDeserializer

* Disabled tests that are testing error messages with Assert

* style fixes

* Refactoring fix
2016-10-24 12:01:32 -05:00
Tobias Nyholm
043658f996 Added meta files (#195)
* Added meta files

* Style fixes from StyleCI
2016-10-14 19:20:46 -05:00
David Garcia
3aeb602406 Make sure $variables is an array in addRecipient() (#176)
* Write test to verify expected behaviour when we provide a String

* Fix broken test checking if the variable is an Array

* PSR Standard using single quote instead of double quote
2016-09-30 15:03:35 +02:00
Tobias Nyholm
8fe342f5b9 Apply fixes from StyleCI and make sure we add MIT license properly (#163)
* Applied fixes from StyleCI

* Create LICENSE
2016-09-18 09:56:14 +02:00
Tobias Nyholm
b2742c73b3 Updated signature for addAttachment
This will fix #69
2016-08-31 11:52:14 +02:00
Tobias Nyholm
3114b8a17a Reduce code complexity 2016-08-05 09:44:49 +02:00
David Garcia
817dad1f90 Applied fixes from StyleCI 2016-07-24 07:42:47 -04:00
David Garcia
8da94ac190 PHP CS Fixer 2016-07-24 12:41:21 +01:00
David Garcia
09eda3df13 PHP Code Sniffer 2016-07-24 12:40:50 +01:00
Tobias Nyholm
6275b2b796 Merge pull request #112 from nebkam/patch-1
Declare endpointUrl field
2016-07-21 01:02:09 +02:00
Sergey Obukhov
a0d10c47fb Merge pull request #121 from TemirkhanN/master
PHPdoc typos, minor performance changes
2016-07-20 12:31:41 -07:00
temirkhan
2d9cd57d2e PHPDoc typos fixed, minor performance changes 2016-04-19 15:27:12 +03:00
Nebojša Kamber
6a8f2dd424 Declare endpointUrl field
To avoid `field declared dynamically` and `field not found` warnings in IDEs
2016-03-29 12:14:40 +02:00
Matīss Jānis Āboltiņš
f5a37188df Fix spelling 2015-11-13 12:30:23 +02:00
Michael Crawford
7fed60d881 * Changed class docblock to include link to readme for instructions.
* Added docblocks for functions and member variables.
* Updated constants to use constants classes
* Changed finalize() - removing the return (since the sendMessage() method already does not return anything)
2014-11-20 12:38:05 -06:00
Michael Crawford
3e55c2bcd2 Changed class docblock and added a link to the readme file with instructions 2014-11-20 12:35:37 -06:00
Michael Crawford
435ac1a3b8 Updated constants based on constant class changes. Also added php docblocks to all functions and member variables. 2014-11-20 12:29:15 -06:00
Travis Swientek
d744b0a809 Merge pull request #56 from jchamberlain/master
Don't require @ prefix for attachment filenames
2014-11-17 17:28:32 -08:00
Travis Swientek
24085530d9 Merge pull request #57 from jchamberlain/custom-data
Allow any data type for custom data
2014-11-17 17:25:43 -08:00
Travis Swientek
f781158019 Removed legacy PHP closing braces 2014-10-06 15:53:33 -07:00
Joshua Chamberlain
f2af6df726 Allow any data type for custom data 2014-09-08 12:11:04 -07:00
Joshua Chamberlain
a674addd2a Don't require @ prefix for attachment filenames 2014-09-05 15:07:55 -07: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
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
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
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
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
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
4ff1184b0b README.md adjustments 2013-08-16 12:50:29 -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