Carsten Brandt
05cc9ae405
improved HTML to Text fallback in BaseMailer
...
fixes #6748
10 years ago
RichWeber
92cd13a913
pull origin
10 years ago
Carsten Brandt
3a1e0f3a5c
property codestyle framework
10 years ago
Qiang Xue
a2a6028253
Fixes #3992
...
Fixes #4147
10 years ago
Carsten Brandt
bc00449c5f
removed wrong use statement for MailEvent
10 years ago
armab
313139968e
Update BaseMailer.php
11 years ago
armab
cdadc01ba2
Update BaseMailer.php
11 years ago
armab
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).
11 years ago
Carsten Brandt
3437c571a1
phpdoc controller did not find some setters
...
fixes #3255
11 years ago
Carsten Brandt
3fdcf11f24
updated phpdoc
11 years ago
Qiang Xue
92bd71cd84
Fixes #2912 : Relative view files will be looked for under the directory containing the view currently being rendered
11 years ago
Carsten Brandt
ccd16e184f
added mailer to the message when using compose
...
more expected behavior when chaining methods using
Mailser::compose()
fixes #2723
11 years ago
Carsten Brandt
bf3c75147d
reverted breaking PHPdoc codestyle changes
...
issue #2852
11 years ago
SonicGD
b5f8a4dc22
Reformat code te be PSR-2 compatible
11 years ago
Carsten Brandt
e2aacad8aa
Added links to PHP.net to apidoc
11 years ago
AlexGx
eaaa5b1bb5
fix code style
11 years ago
Qiang Xue
4e6aa21198
The directory holding email templates is renamed from `mails` to `mail`
11 years ago
Alexander Makarov
c9eca1d596
Fixed refactoring
11 years ago
Qiang Xue
0dfc8b1f7c
refactored BaseMailer about message file name generation.
11 years ago
Alexander Makarov
349f2c9e32
phpdoc fixes, unused variable
11 years ago
Qiang Xue
0c38655217
psr-4 move
11 years ago
Mark
59535d38cf
doc fix
11 years ago
Mark
c0316a10dd
added mail events before/after send
11 years ago
Carsten Brandt
5b489aaa49
let base mailer store files as .eml instead of .txt
...
allows opening email for view in mail program directly
11 years ago
Qiang Xue
23573968a6
Changed important log messages to info level
11 years ago
Qiang Xue
8333a14eb5
Added parameters to fileTransportCallback.
11 years ago
Qiang Xue
b965d4eec7
Implemented file transport for mails.
11 years ago
Carsten Brandt
913eb62294
updated phpdoc and fixed generator read/write-only annotation
11 years ago
Qiang Xue
90a5bcc611
Refactored mail.
11 years ago
Qiang Xue
ed0e44d23b
minor touch up of swiftmailer.
11 years ago
Paul Klimov
9dbf4d7420
Mailer default view class changed to "yii\web\View".
11 years ago
Paul Klimov
104cfd7cb2
'yii\mail\MessageInterface' methods renamed: 'text' to 'textBody', 'html' to 'htmlBody'
11 years ago
Paul Klimov
1aafa73e15
Render methods removed from 'yii\mail\MessageInterface'.
...
Method 'yii\mail\MailerInterface::compose()' reworked allowing rendering message body.
11 years ago
Paul Klimov
ad7761f96a
Method 'yii\mail\MessageInterface::compose()' renamed to 'yii\mail\MessageInterface::message()'.
11 years ago
Paul Klimov
3d1a625cbb
'yii\mail\MessageInterface' updated:
...
- 'body()' renamed to 'renderBody()'
- new 'body()' method introduced
11 years ago
Paul Klimov
b0c5981d42
Method names "yii\mail\MessageInterface" simplified.
11 years ago
Klimov Paul
28b032737d
Method 'yii\mail\BaseMailer::compose()' updated, allowing composition of the complex methods like 'renderText' and 'body'.
11 years ago
Klimov Paul
87af95f712
'yii\mail\MessageInterface' updated:
...
- setter methods renamed to have pure name
- method 'createMessage' renamed to 'compose'
11 years ago
Paul Klimov
368c244768
MessageInterface::render() replaced by MessageInterface::renderHtml() and MessageInterface::renderText()
11 years ago
Paul Klimov
35429fbd44
'yii\mail\ViewResolve' removed.
...
Interface 'ViewContextInterface' applied to BaseMailer.
11 years ago
Paul Klimov
5bc22a077f
Interface 'MailerInterface' extracted.
...
Method 'MailerInterface::createMessage()' added.
11 years ago
Paul Klimov
73a8e77c3d
BaseMailer::defaultMessageConfig published as BaseMailer::messageConfig
11 years ago
Paul Klimov
2a326c7d7b
'email' renamed to 'mail'.
...
'SwiftMailer' recomposed into extension.
11 years ago
Paul Klimov
e5e0de8c8f
'\yii\email\ViewResolver' added.
...
Email message render functionality added.
11 years ago
Paul Klimov
492f35621c
Email components hierarchy created.
...
SwiftMailer applied as email solution.
11 years ago