Author |
Message |
Daniel
Team Member


Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Sat May 25, 2002 3:37 pm (18 years, 8 months ago) |
  |
Well then just look for something like this:
Code: | Failed sending email |
It HAS to be there, if you're running 2.0.1. |
________________________________
 |
|
    |
 |
Richard
WebHelper

Joined: 12 Jan 2002
Posts: 93
Location: Herts, UK
|
Posted:
Sat May 25, 2002 3:39 pm (18 years, 8 months ago) |
  |
I found it and changed it. Just going to see if it worked .... |
|
|
    |
 |
Richard
WebHelper

Joined: 12 Jan 2002
Posts: 93
Location: Herts, UK
|
Posted:
Sat May 25, 2002 3:41 pm (18 years, 8 months ago) |
  |
I think I have made it worse. Is this right:
Code: | //if ( !$result )
{
message_die(GENERAL_ERROR, 'Failed sending email', '', __LINE__, __FILE__);
}
|
|
|
|
    |
 |
Daniel
Team Member


Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Sat May 25, 2002 3:44 pm (18 years, 8 months ago) |
  |
No, it isn't. Try this:
Code: | /* if ( !$result )
{
message_die(GENERAL_ERROR, 'Failed sending email', '', __LINE__, __FILE__);
} */
|
|
________________________________
 |
|
    |
 |
Richard
WebHelper

Joined: 12 Jan 2002
Posts: 93
Location: Herts, UK
|
Posted:
Sat May 25, 2002 3:47 pm (18 years, 8 months ago) |
  |
Hasn't worked. It's come up with this error:
Code: | Parse error: parse error, expecting `')'' in /mnt/host-users/rs-world/phpBB2/includes/emailer.php on line 95
Fatal error: Cannot instantiate non-existent class: emailer in /mnt/host-users/rs-world/phpBB2/privmsg.php on line 1139
|
|
|
|
    |
 |
Daniel
Team Member


Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Sat May 25, 2002 3:54 pm (18 years, 8 months ago) |
  |
Are you sure you ONLY modified what's above? And are you sure you didn't replace something else with what's above? |
________________________________
 |
|
    |
 |
Richard
WebHelper

Joined: 12 Jan 2002
Posts: 93
Location: Herts, UK
|
Posted:
Sat May 25, 2002 4:44 pm (18 years, 8 months ago) |
  |
Think so. Here's the file:
Code: | Code deleted by Richard |
|
Last edited by Richard on Sat May 25, 2002 5:04 pm, edited 1 time in total |
|
    |
 |
Daniel
Team Member


Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Sat May 25, 2002 4:53 pm (18 years, 8 months ago) |
  |
You must have changed something. This is the correct code:
Code: | if ( !file_exists($this->tpl_file) )
{
message_die(GENERAL_ERROR, 'Could not find email template file ' . $template_file, '', __LINE__, __FILE__);
}
if ( !$this->load_msg() )
{
message_die(GENERAL_ERROR, 'Could not load email template file ' . $template_file, '', __LINE__, __FILE__);
}
|
See the difference with yours? |
________________________________
 |
|
    |
 |
Richard
WebHelper

Joined: 12 Jan 2002
Posts: 93
Location: Herts, UK
|
Posted:
Sat May 25, 2002 5:02 pm (18 years, 8 months ago) |
  |
I see the problem. I have just changed the script and now it works great. Thanks for your help !  |
|
|
    |
 |
Daniel
Team Member


Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Sat May 25, 2002 5:18 pm (18 years, 8 months ago) |
  |
Phew! I thought it had to be a silly mistake...  |
________________________________
 |
|
    |
 |
|