|
|
Joined: Mar 2001
Posts: 26
User
|
User
Joined: Mar 2001
Posts: 26 |
I have added in ubbt.inc.php: // ######################################################################## // MAILER CLASS // Define class for sending email // ######################################################################## class mailer { // ###################################################################### // headers // ###################################################################### function headers() { global $config; $newline = "\n"; if (stristr(PHP_OS,"win")) { $newline = "\r\n"; } [:"red"] $headers .= "Content-Type: text/plain; charset=Windows-1251$newline"; [/] [:"red"] $headers .= "Content-Transfer-Encoding: 8bit$newline"; [/] $headers .= "From: {$config['emailaddy']}$newline"; $headers .= "Sender: {$config['emailaddy']}$newline"; $headers .= "Reply-to: {$config['emailaddy']}$newline"; $headers .= "X-Mailer: UBB.threads$newline"; $headers .= "Return-Path: <{$config['emailaddy']}>$newline"; return $headers;
Last edited by Goshik; 06/18/2002 2:26 AM.
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
thank you
|
|
|
|
Joined: Jun 2001
Posts: 43
User
|
User
Joined: Jun 2001
Posts: 43 |
code: global $config; $newline = "\n"; if (stristr(PHP_OS,"win")) { $newline = "\r\n"; } if (!$from) { $headers .= "From: {$config['emailaddy']}$newline"; } else { $headers .= "FRom: $from$newline"; } $headers .= "Content-Type: text/html; charset=Windows-1251$newline"; $headers .= "Content-Transfer-Encoding: 8bit$newline"; $headers .= "Sender: {$config['emailaddy']}$newline"; $headers .= "Reply-to: {$config['emailaddy']}$newline"; $headers .= "X-Mailer: UBB.threads$newline"; $headers .= "Return-Path: <{$config['emailaddy']}>$newline"; if ($htmlmail == "HTML") { $headers .= "Content-Type: text/html; charset=Windows-1251$newline"; $headers .= "Content-Transfer-Encoding: 8bit$newline"; } return $headers;
|
|
|
|
Joined: Mar 2001
Posts: 26
User
|
User
Joined: Mar 2001
Posts: 26 |
Thanks.
|
|
|
|
Joined: Jun 2001
Posts: 43
User
|
User
Joined: Jun 2001
Posts: 43 |
Still early. Headings is duplicated. See below. From: [] [email protected][/] Content-Type: text/plain; charset=Windows-1251 Content-Transfer-Encoding: 8bit Reply-to: [] [email protected][/] X-Mailer: UBB.threads Content-Type: text/html; charset=Windows-1251 Content-Transfer-Encoding: 8bit
|
|
|
|
Joined: Mar 2001
Posts: 26
User
|
User
Joined: Mar 2001
Posts: 26 |
ß òîëüêî, òîëüêî ñäåëàë àïäåéò äî ïîñëåäíåé âåðñèè è ýòîò êîä åùå íå ïðàâèë. Ãëÿíó ïîçæå.
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 1,157
Joined: July 2001
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|