mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Added "Allow self signed certificates" setting
Updated recaptcha plugin
This commit is contained in:
parent
46187d0749
commit
833f40c115
35 changed files with 363 additions and 273 deletions
29
plugins/_depricated/convert-headers-styles/index.php
Normal file
29
plugins/_depricated/convert-headers-styles/index.php
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
<?php
|
||||
|
||||
class ConvertHeadersStylesPlugin extends \RainLoop\Plugins\AbstractPlugin
|
||||
{
|
||||
public function Init()
|
||||
{
|
||||
$this->addHook('filter.result-message', 'FilterResultMessage');
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \MailSo\Mail\Message &$oMessage
|
||||
*/
|
||||
public function FilterResultMessage(&$oMessage)
|
||||
{
|
||||
if ($oMessage)
|
||||
{
|
||||
$sHtml = $oMessage->Html();
|
||||
if ($sHtml && 0 < strlen($sHtml))
|
||||
{
|
||||
include_once __DIR__.'/CssToInlineStyles.php';
|
||||
|
||||
$oCSSToInlineStyles = new \TijsVerkoyen\CssToInlineStyles\CssToInlineStyles($sHtml);
|
||||
$oCSSToInlineStyles->setEncoding('utf-8');
|
||||
$oCSSToInlineStyles->setUseInlineStylesBlock(true);
|
||||
$oMessage->SetHtml($oCSSToInlineStyles->convert().'<!-- convert-headers-styles-plugin -->');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue