Skip to content

Commit 103ac68

Browse files
committed
Added converter injection to README.md
1 parent eb08140 commit 103ac68

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,21 @@ $mailer = Swift_Mailer::newInstance();
1414
$mailer->registerPLugin(new CssInlinerPlugin());
1515
```
1616

17+
You can set custom parameters by providing your own CssToInlineStyles object. Like this
18+
19+
```php
20+
use TijsVerkoyen\CssToInlineStyles\CssToInlineStyles;
21+
22+
$mailer = Swift_Mailer::newInstance();
23+
24+
$converter = new CssToInlineStyles();
25+
$converter->setUseInlineStylesBlock(FALSE);
26+
27+
$mailer->registerPLugin(new CssInlinerPlugin($converter));
28+
```
29+
1730
## License
1831

1932
Copyright (c) 2013, OpenBuildings Ltd. Developed by Ivan Kerin as part of [clippings.com](http://clippings.com)
2033

21-
Under BSD-3-Clause license, read LICENSE file.
34+
Under BSD-3-Clause license, read LICENSE file.

0 commit comments

Comments
 (0)