Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vMail Converter - Send out your emails in different encoding Details »»
vMail Converter - Send out your emails in different encoding
Version: 1.2.0, by Milad Milad is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Board Optimization - Version: 3.6.4 Rating:
Released: 04-04-2007 Last Update: 05-16-2007 Installs: 30
Code Changes  
No support by the author.


Introduction:
In order to solve the problem with unicode (UTF-8) in some Email Service Providers (such as Hotmail, Yahoo and many others), I created this product.
It converts the sent out messages only, from your real encoding into an encoding of choice, both encodings, the source & destination must be supported by iconv.
You may know, I had converted to UTF-8 and faced this problem, now it's solved.

Caution:
This product is provided As Is without warranties.

Requirements:
  • vBulletin 3.6.4+
  • iconv PHP extension is installed on your system, or your PHP version is 5 and above.

Supported Encodings:
See http://www.gnu.org/software/libiconv/#introduction

Installation or Upgrading:
  1. Import the product file product-vmail_converter.xml (Choose Yes when Upgrade).
  2. Go to vBulletin Options -> Email Options -> vMail Converter - Destination Encoding.
  3. Set your Destination Encoding and save (For me, It's windows-1256).
  4. In /includes/class_mail.php Replace every
    PHP Code:
    $stylevar['charset'
    WITH
    PHP Code:
    $this->get_charset() 
  5. In /includes/class_mail.php Find
    PHP Code:
        function start($toemail$subject$message$from ''$uheaders ''$username '')
        { 
    Add after:

    PHP Code:
            // vMail Converter START
            
    $subject $this->vmail_convert($subject);
            
    $message $this->vmail_convert($message);
            
    // vMail Converter END 
  6. In /includes/class_mail.php Find again
    PHP Code:
        function start($toemail$subject$message$from ''$uheaders ''$username '')
        { 
    Add before:
    PHP Code:
        // vMail Converter START
        
    function vmail_convert($item)
        {
            global 
    $stylevar;
            
            if (
    function_exists('iconv') AND $item != '')
            {
                return @
    iconv($stylevar['charset'], $this->registry->options['vmail_converter_destination'], $item);
            }
            else
            {
                return 
    $item;
            }
        }
        
        function 
    get_charset()
        {
            global 
    $stylevar;
            
            if (
    function_exists('iconv'))
            {
                return 
    $this->registry->options['vmail_converter_destination'];
            }
            else
            {
                return 
    $stylevar['charset'];
            }
        }
        
    // vMail Converter END 
  7. In /includes/class_mail.php Find twice
    PHP Code:
                $mailfromname $this->encode_email_header(unhtmlspecialchars($mailfromname$unicode_decode), $encoding); 
    Add before
    PHP Code:
                // vMail Converter START
                
    $mailfromname $this->vmail_convert($mailfromname);
                
    // vMail Converter END 
  8. In /includes/class_mail.php Find
    PHP Code:
    $fromemail $from
    Add before
    PHP Code:
                // vMail Converter START
                
    $from $this->vmail_convert($from);
                
    // vMail Converter END 
    Save and upload the file again.
  9. You're done.

Known issues:
  • none.

Versions:
  • 1.0.0 (initial release). (5. April 2007)
  • 1.1.0 (10. April 2007)
  • 1.1.1 (11. April 2007) fix a bug
  • 1.2.0 (17. May 2007) Very good version, every bug fixed.

Support is given for who clicks "install" only.
Mark it as "Installed" to receive updates and support.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 04-05-2007, 06:31 PM
jwaany's Avatar
jwaany jwaany is offline
 
Join Date: Jul 2003
Location: KSA
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good work ...

thanks ..
Reply With Quote
  #13  
Old 04-06-2007, 11:19 PM
Milad's Avatar
Milad Milad is offline
 
Join Date: Apr 2005
Location: Syro
Posts: 663
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you guys.

I won't publish file edits right now, because I'm trying to do it via plug-ins, so be patient please.

Regards.
Reply With Quote
  #14  
Old 04-07-2007, 06:46 AM
Omranic's Avatar
Omranic Omranic is offline
 
Join Date: Jan 2005
Location: Egypt
Posts: 536
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Milad View Post
Thank you guys.

I won't publish file edits right now, because I'm trying to do it via plug-ins, so be patient please.

Regards.
Is it possible to be done via plugins?
I have looked hooks around & didn't reach any starting point.
Reply With Quote
  #15  
Old 04-08-2007, 01:33 PM
Milad's Avatar
Milad Milad is offline
 
Join Date: Apr 2005
Location: Syro
Posts: 663
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SolidSnake@GTI View Post
Is it possible to be done via plugins?
I have looked hooks around & didn't reach any starting point.
Yes, it could be done via plug-ins, I have a good view, I'll publish it when I'm done.
Reply With Quote
  #16  
Old 04-08-2007, 04:54 PM
Subah's Avatar
Subah Subah is offline
 
Join Date: Feb 2006
Location: KUWAIT
Posts: 393
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks , but its not help in my problem
Reply With Quote
  #17  
Old 04-09-2007, 02:22 PM
jozief mx jozief mx is offline
 
Join Date: Aug 2006
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

and me
i recevied the mail empety and mush timr i receved the languge not good

وكمان معي احيانا بيوصلني البريد فاضي واحيانا مرمز مثل هيك
أƒأ¤أٹ أٹأ“أٹأ،أ£ أ¥أگأ‡ أ‡أ،أˆأ‘أ+أڈ أ‡أ،أ…أ،أںأٹأ‘أ¦أ¤أ+ أ،أƒأ¤ أڑأ¤أ¦أ‡أ¤ أˆأ‘أ+أڈأں أ‡أ،أ…أ،أںأٹأ‘أ¦أ¤أ+ أƒأڈأژأ، أںأ…أژأٹأˆأ‡أ‘ أ،أ،أˆأ‘أ+أڈ أ‡أ،أ…أ،أںأٹأ‘أ¦أ¤أ+ أ+أ+ أ‡أ،أ£أٹأچأ‡أˆأ¦أ¤ أ+أ+ أ‡أ،أ،أ¥.

أ‡أ،أژأکأ¦أ‰ أ‡أ،أƒأ¦أ،أ¬ أ£أ¤ أˆأ‘أ¤أ‡أ£أŒ أ…أژأٹأˆأ‡أ‘ أ‡أ،أˆأ‘أ+أڈ أ¥أگأ‡ أ‡أںأٹأ£أ،أٹ. أ¦أ£أڑ أ¥أگأ‡, أ…أژأٹأˆأ‡أ‘ أ‡أ،أٹأ¥أ+أ†أ‰ أ،أ‡ أ+أ’أ‡أ، أ–أ‘أ¦أ‘أ+أ‡أ°:

أ¤أ¥أ‡أ+أ‰ أ‡أ،أ+أ+أ‘أ‰.
أ¤أ¥أ‡أ+أ‰ أ“أکأ‘ أ£أ+أ‘أڈ.

أ¤أ¥أ‡أ+أ‰ أ+أ+أ‘أ‰ أƒأژأ‘أ¬.
أ¤أ¥أ‡أ+أ‰ أ“أکأ‘ أ£أ+أ‘أڈ.
أ¤أ¥أ‡أ+أ‰ أ“أکأ‘ أ£أ+أ‘أڈ.
Reply With Quote
  #18  
Old 04-10-2007, 10:19 AM
Milad's Avatar
Milad Milad is offline
 
Join Date: Apr 2005
Location: Syro
Posts: 663
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have just released new version.
Reply With Quote
  #19  
Old 04-10-2007, 05:33 PM
Subah's Avatar
Subah Subah is offline
 
Join Date: Feb 2006
Location: KUWAIT
Posts: 393
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Still not fix my arabic problem !!!
Reply With Quote
  #20  
Old 04-11-2007, 09:17 AM
alforqan2 alforqan2 is offline
 
Join Date: Apr 2007
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

im update 2 the new relase and the prplem not goinge
Reply With Quote
  #21  
Old 04-11-2007, 11:05 AM
Milad's Avatar
Milad Milad is offline
 
Join Date: Apr 2005
Location: Syro
Posts: 663
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Come in guys. your problems won't be solved if you set down there and say I have a problem.

Please describe your problem and circumstances.

Thanks
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:01 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05950 seconds
  • Memory Usage 2,340KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (10)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete