30 Commits

Author SHA1 Message Date
d804950d09 Update phpDoc BaseMailer::compose() 2016-02-20 18:44:29 +03:00
8f26e93b20 Update phpDoc MailerInterface::compose() 2016-02-20 16:58:13 +03:00
5c4e2d4372 Removed unnecessary parentheses 2016-02-16 14:08:43 +03:00
cd87d67f34 Global DOCS update: ~~~ replaced with ``` 2015-12-02 23:15:28 +02:00
67658cf57d Replaced static with $this in phpdoc since current IDEs are finally able to handle it correctly 2015-05-31 13:39:30 +03:00
05cc9ae405 improved HTML to Text fallback in BaseMailer
fixes #6748
2015-01-10 15:07:12 +01:00
3a1e0f3a5c property codestyle framework 2014-07-30 00:21:31 +02:00
a2a6028253 Fixes #3992
Fixes #4147
2014-07-01 14:45:44 -04:00
eb60aaecdf Update BaseMessage.php
See 0ff0f9d32e

https://github.com/yiisoft/yii2/issues/4071
2014-06-29 04:41:13 +04:00
2457e24795 Fixes #4071: mail component renamed to mailer, yii\log\EmailTarget::$mail renamed to yii\log\EmailTarget::$mailer 2014-06-26 18:28:28 +04:00
bc00449c5f removed wrong use statement for MailEvent 2014-06-25 23:12:11 +02:00
775141ab96 move mail event class
fixes #3899
2014-06-25 20:19:17 +02:00
313139968e Update BaseMailer.php 2014-05-02 18:34:13 +03:00
cdadc01ba2 Update BaseMailer.php 2014-05-02 17:33:25 +03:00
a324b26c7f BaseMailer: strip <style> content from TextBody fix
If ```$htmlLayout``` contains <style> tags with CSS rules,
strip_tags here: https://github.com/yiisoft/yii2/blob/master/framework/mail/BaseMailer.php#L189
won't clean those CSS rules.

Actual html: 
```html
<html>
    <head>
        <style>
            .text-secondary {color: #93959A;}
            [...]
            [Other CSS rules]
            [...]
        </style>
    </head>
    <body>
        <div>Some content</div>
    </body>
</html>
```

Will look this way in TEXT version of Email: 
```
.text-secondary {color: #93959A;}
[...]
[Other CSS rules]
[...]
Some content
```

--------------

If TEXT version of Email differs drastically from visible content of HTML version,
it can be result that some penalty points will apply to such mails: 
http://wiki.apache.org/spamassassin/Rules/MPART_ALT_DIFF_COUNT


Since it's default behaviour for both yii2-app-advanced and yii2-app-basic (where stripped from tags html used for TextBody),
I believe people will stumble in this for sure, without even knowing that their emails can be penalized.


You can reproduce it by placing CSS styles in email view or layout
and test it here: http://www.mail-tester.com/ (SpamAssassin section).
2014-05-02 17:01:03 +03:00
3437c571a1 phpdoc controller did not find some setters
fixes #3255
2014-04-26 13:03:08 +02:00
3fdcf11f24 updated phpdoc 2014-04-09 18:51:45 +02:00
f2b20d99d5 Merge branch 'master' into refactor-errorhandler
* master:
  Fixes #2912: Relative view files will be looked for under the directory containing the view currently being rendered
  app end improvement.
  improvement of Application::end() handling.
  typo fix.
  Fixes #2910: Added `Application::end()`

Conflicts:
	framework/base/Application.php
2014-03-30 00:27:51 +01:00
c93231e26b improved session error handling
fixes #1946
2014-03-29 23:54:26 +01:00
92bd71cd84 Fixes #2912: Relative view files will be looked for under the directory containing the view currently being rendered 2014-03-28 21:54:32 -04:00
ccd16e184f added mailer to the message when using compose
more expected behavior when chaining methods using
Mailser::compose()

fixes #2723
2014-03-25 15:05:34 +01:00
bf3c75147d reverted breaking PHPdoc codestyle changes
issue #2852
2014-03-23 20:51:09 +01:00
b5f8a4dc22 Reformat code te be PSR-2 compatible 2014-03-16 10:46:21 +06:00
e2aacad8aa Added links to PHP.net to apidoc 2014-03-07 19:41:43 +01:00
eaaa5b1bb5 fix code style 2014-03-04 06:12:30 +02:00
4e6aa21198 The directory holding email templates is renamed from mails to mail 2014-02-12 15:01:01 -05:00
c9eca1d596 Fixed refactoring 2014-01-25 13:35:27 +04:00
0dfc8b1f7c refactored BaseMailer about message file name generation. 2014-01-24 11:48:20 -05:00
349f2c9e32 phpdoc fixes, unused variable 2014-01-12 23:40:21 +04:00
0c38655217 psr-4 move 2014-01-10 21:41:43 -05:00