vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Convert email's from Win-1251 to Koi8-R (https://vborg.vbsupport.ru/showthread.php?t=38186)

inetd 05-03-2002 09:35 AM

Convert email's from Win-1251 to Koi8-R
 
I need hack which convert all automatic email's from Win-1251 to Koi8-R. Please help me :)

Sparkz 05-03-2002 09:47 AM

As I don't know much about the mail RFC or the mail()-function in vB, this is only a wild guess.

I would imagine that you'd have to find all instances of the mail()-function and add an extra header to it, or something.

Maybe changing this:

PHP Code:

mail($touser[email],$emailsubject,$emailmsg,"From: \"$bbtitle Mailer\" <$webmasteremail>"); 

to
PHP Code:

mail($touser[email],$emailsubject,$emailmsg,"From: \"$bbtitle Mailer\" <$webmasteremail>""Content-Type: text/plain; charset=\"koi8-r\""); 

Again - this is only a wild guess

inetd 05-03-2002 10:48 AM

Don't work
I generally don't receive emails... :(

Sparkz 05-03-2002 10:50 AM

Hmm - that addition should, in theory, add the needed header to your email...

inetd 05-03-2002 11:03 AM

Sparkz or other, help me. This very important for me ....

Sparkz 05-03-2002 11:06 AM

I'd have to look closer at it, and then it'll have to wait untill later, as I am at work now.

inetd 05-08-2002 07:41 PM

Sparkz, you don't test your suggestion?

Sparkz 05-08-2002 08:12 PM

Sorry for not getting back earlier. It kinda slipped my mind.

It seems I made a slight mistake in my first suggestion. Try this instead:
PHP Code:

mail($touser[email],$emailsubject,$emailmsg,"From: \"$bbtitle Mailer\" <$webmasteremail>\nContent-Type: text/plain; charset=\"koi8-r\""); 

By mistake I had separated the extra headers, instead of putting them in the same parameter, like they should have been.

I have tried this one, outside of vB, and it worked fine. At least it messed up my norwegian letters :p (Which was to be expected :))

inetd 05-09-2002 02:20 PM

Sparkz, don't convert.
I change member.php and use mailform from my vB. And message received in Win-1251


All times are GMT. The time now is 12:27 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01005 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete