Welcome, Guest. Please Login or Register.
May 31, 2025, 03:28:48 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  English User Help  |  English Help  |  Need help: Report to moderator « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Need help: Report to moderator  (Read 265 times)
Surfy
Sr. Member
****
Posts: 458


I'm a llama!

Need help: Report to moderator
« on: September 06, 2002, 01:59:37 PM »
Reply with quote

hia all

I use SE 1.4.1, and have a problem.

If somebody klick on "report to moderator" in a Post, an error apears:

QuoteEin Fehler ist aufgetreten!

2: Server Error
(d:\inetpub\wwwroot\forumlokal\Sources\Subs.php ln 323)

A part of my Subs.php:

Quotefunction sendmail($to,$subject,$message,$from = null) {

    global $mailtype,$webmaster_email;
   if ($from==null){ $from=$webmaster_email; }
    $subject = stripslashes($subject);
    //Messy crap - perhaps someone can alter this later
            $subject = str_replace (""", "\"", $subject);
            $subject = str_replace ("'", "'", $subject);
            $subject = str_replace ("&", "&", $subject);
            $subject = str_replace ("&lt;", "<", $subject);
            $subject = str_replace ("&gt;", ">", $subject);
    $message = stripslashes($message);
   $mail_result = mail ($to,$subject,$message,
      "From: $from\r\n".
      "Return-Path: $webmaster_email");

    return $mail_result;
}


The named line was:

"From: $from\r\n".

Whats wrong with it? The Board run under w2k.

thx a lot, CF
Logged
Roundboy
Jr. Member
**
Posts: 72


I pretend to know everything.

ercdvs@hotmail.com WWW
Re:Need help: Report to moderator
« Reply #1 on: September 06, 2002, 02:59:30 PM »
Reply with quote

that really isnt a line by itself.. the actual line is:

$mail_result = mail ($to,$subject,$message,"From: $from\r\n"."Return-Path: $webmaster_email");

from cutting and pasting the code you provided.. the period should be a semi-colon

$from\r\n","Return-Path
Logged

I have trouble seperating games from reality...
... I just used a shotgun on my mother, and she's not respawning.
Surfy
Sr. Member
****
Posts: 458


I'm a llama!

Re:Need help: Report to moderator
« Reply #2 on: September 06, 2002, 04:20:06 PM »
Reply with quote

thx for your help, but i cant solve it  :-[


Quote$mail_result = mail ($to,$subject,$message,"From: $from\r\n","Return-Path: $webmaster_email");


I try:

$from\r\n","
$from\r\n"."
$from\r\n";"

But nothing helps :-(

Perhaps my english is too bad too  :-[

I hope you ore someone else could help!

thx a lot, Surfy
Logged
Roundboy
Jr. Member
**
Posts: 72


I pretend to know everything.

ercdvs@hotmail.com WWW
Re:Need help: Report to moderator
« Reply #3 on: September 06, 2002, 07:48:38 PM »
Reply with quote

hmmm I looked up the actual line in MY subs.php, and it should be exactly like you posted..

My 1.4.1 'report to moderator' works just fine.

Looking at that line, the possible problem could be with the variables..

do you have your 'webmaster' email sent?
do you have YOUR email set in your profile?

What message are you sending?  Blank or ?
Logged

I have trouble seperating games from reality...
... I just used a shotgun on my mother, and she's not respawning.
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  Need help: Report to moderator « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 1.419 seconds with 21 queries.