Advanced Search  :  Site Statistics  :  Directory  :  Web Resources  :  Forum  
    Plugins for Geeklog Geeklog Plugins    
 Welcome to Plugins for Geeklog
 Saturday, May 17 2008 @ 07:08 AM EDT

HTML mail

   
GeekLog

I am playing with Geeklog, and I want it sends me notifications.
OK, I set up the config.php file, but tere are some problems! I use slovenian charaters, and if i use character codes (for example: #&382;), I get this codes in my e-mail and not appropriate characters.

So I switched to HTML mail (changed headers). It works fine, but now antispam program is activated. Why? Because I receive only HTML mail - but according to RFC rules Geeklog should send plain text AND HTML mail. So... how to solve this problem?

 

Story Options

HTML mail | 2 comments | Create New Account
The following comments are owned by whomever posted them. This site is not responsible for what they say.
HTML mail
Authored by: anonymous on Thursday, May 15 2003 @ 04:47 AM EDT

OK, I found a solution... everything must be translated into unicode... I insert this into users.php, moderation.php, and other scripts that send mail. In should be nice to have sometning like that built-in future versions of Geeklog:

$mailtext = str_replace("Š", "\xA9", $mailtext);
$mailtext = str_replace("Ž", "\xAE", $mailtext);
$mailtext = str_replace("Č", "\xC8", $mailtext);
$mailtext = str_replace("š", "\xB9", $mailtext);
$mailtext = str_replace("ž", "\xBE", $mailtext);
$mailtext = str_replace("č", "\xE8", $mailtext);

HTML mail
Authored by: anonymous on Thursday, May 15 2003 @ 04:49 AM EDT

Actually ščž characters are writen in codes:

$mailtext = str_replace("& #352;", "\xA9", $mailtext);
$mailtext = str_replace("& #381;", "\xAE", $mailtext);
$mailtext = str_replace("Č", "\xC8", $mailtext);
$mailtext = str_replace("& #353;", "\xB9", $mailtext);
$mailtext = str_replace("& #382;", "\xBE", $mailtext);
$mailtext = str_replace("č", "\xE8", $mailtext);

Note: no space between & and #.

 Copyright © 2008 Plugins for Geeklog
 All trademarks and copyrights on this page are owned by their respective owners.
Powered By Geeklog 
Created this page in 0.15 seconds