|
[F] UTF-8 in FROM mail header problem
|
|
08-30-2008, 04:47 PM
Post: #1
|
|||
|
|||
|
[F] UTF-8 in FROM mail header problem
I don't know why this problem happened or any other ppls have same problem or not.
First of all I'm using a SMTP mail function in localhost. My forum name is in persian and so it should send a utf-8 encoded header in from header. at the moment I'm using 1.4.1 and it send mails with headers like this: From: "=?utf-8?B?2q/Ystin2LHZhyI=?= <No-Reply@xxx.com> I thought that it is in result of quotation that not ended. so I reported this thread and I added a quotation at the end. after that mail never delivers! I checked out my mails that correctly delivered to me with a persian title in from section and they was like this: From: =?UTF-8?B?2LnZhNuMINio2KfZhdix2KfZhQ==?= <blab@blab.com> and logged headers of smtp mail connection: Code: HELO localhostMAIL FROM:<=?utf-8?B?2q/Ystin2LHZhyI=?= <No-Reply@xxx.com>>RCPT TO:<mymail@gmail.com>DATADate: Sat, 30 Aug 2008 16:13:47 +0000To: mymail@gmail.comSubject: =?utf-8?B?2LHZhdiyINmI2LHZiNivINm+2KfaqSDYtNivINiv2LEg2q/Ystin2LHZhw==?=From: =?utf-8?B?2q/Ystin2LHZhyI=?= <No-Reply@xxx.com>FROM:<=?utf-8?B?2q/Ystin2LHZhyI=?= <No-Reply@xxx.com>> so I believe that inc/mailhandlers/smtp.php {line~193} should be altered to: if(!$this->send_data('MAIL FROM:'.$this->from.'', '250')) I don't know that if this affect any other sections of mailing of board but I did it and I get result. and also inc/class_mailhandler.php should be altered same as this: $this->from = $this->utf8_encode($mybb->settings['bbname']); because utf-8 encoding does not need that indeed! thanks. ُPersian MyBBoard , Translations, Plugins , Mods, Themes, Templates,... |
|||
|
08-30-2008, 05:04 PM
Post: #2
|
|||
|
|||
|
RE: UTF-8 in FROM mail header problem
That's not the correct fix, but I've already fixed this.
|
|||
|
08-30-2008, 05:04 PM
Post: #3
|
|||
|
|||
|
[F] UTF-8 in FROM mail header problem
Thank you for your bug report.
This bug has been fixed in our internal code repository. Please note that the problem will not be fixed here until these forums are updated. |
|||
|
08-30-2008, 05:06 PM
Post: #4
|
|||
|
|||
|
RE: [F] UTF-8 in FROM mail header problem
may you provide me correct fix?
ُPersian MyBBoard , Translations, Plugins , Mods, Themes, Templates,... |
|||
|
09-01-2008, 04:33 AM
Post: #5
|
|||
|
|||
| RE: [F] UTF-8 in FROM mail header problem | |||
|
09-07-2008, 02:53 PM
(This post was last modified: 09-07-2008 02:55 PM by Choli.)
Post: #6
|
|||
|
|||
RE: [F] UTF-8 in FROM mail header problem
(08-30-2008 05:06 PM)imei Wrote: may you provide me correct fix? I've had the same bug and fixed it before noticing this thread. Until the new version of MyBB is released, you can use this fix (which I assume it is the one Ryan implemented): In the file inc/class_mailhandler.php, find this line: PHP Code: $this->from = '"'.$this->utf8_encode($mybb->settings['bbname'].'"'); PHP Code: $this->from = '"'.$this->utf8_encode($mybb->settings['bbname']).'"'; |
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)
Search
Member List
Calendar
Help


