View previous topic :: View next topic |
Author |
Message |
andyshen -
Joined: 08 Dec 2003 Posts: 36
|
Posted: Thu Jan 08, 2004 1:58 am Post subject: Question |
|
|
Failed sending email :: PHP ::
DEBUG MODE
Line : 234
File : C:\Program Files\Abyss Web Server\htdocs\urmom\includes\emailer.php |
|
Back to top |
|
 |
Anonymoose -
Joined: 09 Sep 2003 Posts: 2192
|
Posted: Thu Jan 08, 2004 10:28 am Post subject: |
|
|
Might help if you posted or linked to the emailer script you're using :wink: |
|
Back to top |
|
 |
Moxxnixx -
Joined: 21 Jun 2003 Posts: 1226 Location: Florida
|
Posted: Thu Jan 08, 2004 1:57 pm Post subject: |
|
|
That error's from your message board, right?
That means you failed to specify your SMTP in the configuration. |
|
Back to top |
|
 |
andyshen -
Joined: 08 Dec 2003 Posts: 36
|
Posted: Sat Jan 10, 2004 8:42 am Post subject: |
|
|
how do i fix it? |
|
Back to top |
|
 |
Moxxnixx -
Joined: 21 Jun 2003 Posts: 1226 Location: Florida
|
Posted: Sat Jan 10, 2004 1:30 pm Post subject: |
|
|
Go into your php.ini and look for :
SMTP = localhost
Change it to whatever your email account uses to send mail
SMTP = smtp.youremail.com
Just below that, specify:
Sendmail_from = you@youremail.com
Then, go into your forum admin panel > general configurations
and change the smtp settings accordingly.
That should do it. If not, do a search for "SMTP" on this forum. |
|
Back to top |
|
 |
andyshen -
Joined: 08 Dec 2003 Posts: 36
|
Posted: Tue Jan 13, 2004 1:01 am Post subject: |
|
|
still doesn't work |
|
Back to top |
|
 |
jtc970 -
Joined: 24 Mar 2003 Posts: 172
|
Posted: Tue Jan 13, 2004 1:17 am Post subject: |
|
|
try adding
ini_set("sendmail_from", "you@youremail.com");
ini_set("SMTP", "localhost");
to the top of
C:\Program Files\Abyss Web Server\htdocs\urmom\includes\emailer.php |
|
Back to top |
|
 |
andyshen -
Joined: 08 Dec 2003 Posts: 36
|
Posted: Tue Jan 13, 2004 3:29 am Post subject: |
|
|
jtc970 wrote: | try adding
ini_set("sendmail_from", "you@youremail.com");
ini_set("SMTP", "localhost");
to the top of
C:\Program Files\Abyss Web Server\htdocs\urmom\includes\emailer.php |
where do i edit it; after where and before where
Code: |
<?php
/***************************************************************************
emailer.php
-------------------
begin : Sunday Aug. 12, 2001
copyright : (C) 2001 The phpBB Group
email : support@phpbb.com
$Id: emailer.php,v 1.15.2.34 2003/07/26 11:41:35 acydburn Exp $
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
//
// The emailer class has support for attaching files, that isn't implemented
// in the 2.0 release but we can probable find some way of using it in a future
// release
//
class emailer
{
var $msg, $subject, $extra_headers;
var $addresses, $reply_to, $from;
var $use_smtp;
var $tpl_msg = array();
function emailer($use_smtp)
{
$this->reset();
$this->use_smtp = $use_smtp;
$this->reply_to = $this->from = '';
}
// Resets all the data (address, template file, etc etc to default
function reset()
{
$this->addresses = array();
$this->vars = $this->msg = $this->extra_headers = '';
}
// Sets an email address to send to
function email_address($address)
|
|
|
Back to top |
|
 |
jtc970 -
Joined: 24 Mar 2003 Posts: 172
|
Posted: Tue Jan 13, 2004 3:47 am Post subject: |
|
|
right above the
class emailer
line |
|
Back to top |
|
 |
andyshen -
Joined: 08 Dec 2003 Posts: 36
|
Posted: Tue Jan 13, 2004 4:12 am Post subject: |
|
|
still doesn't work |
|
Back to top |
|
 |
|