Question

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
andyshen
-


Joined: 08 Dec 2003
Posts: 36

PostPosted: Thu Jan 08, 2004 1:58 am    Post subject: Question Reply with quote

Failed sending email :: PHP ::

DEBUG MODE
Line : 234
File : C:\Program Files\Abyss Web Server\htdocs\urmom\includes\emailer.php
Back to top View user's profile Send private message
Anonymoose
-


Joined: 09 Sep 2003
Posts: 2192

PostPosted: Thu Jan 08, 2004 10:28 am    Post subject: Reply with quote

Might help if you posted or linked to the emailer script you're using :wink:
Back to top View user's profile Send private message
Moxxnixx
-


Joined: 21 Jun 2003
Posts: 1226
Location: Florida

PostPosted: Thu Jan 08, 2004 1:57 pm    Post subject: Reply with quote

That error's from your message board, right?
That means you failed to specify your SMTP in the configuration.
Back to top View user's profile Send private message Visit poster's website
andyshen
-


Joined: 08 Dec 2003
Posts: 36

PostPosted: Sat Jan 10, 2004 8:42 am    Post subject: Reply with quote

how do i fix it?
Back to top View user's profile Send private message
Moxxnixx
-


Joined: 21 Jun 2003
Posts: 1226
Location: Florida

PostPosted: Sat Jan 10, 2004 1:30 pm    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
andyshen
-


Joined: 08 Dec 2003
Posts: 36

PostPosted: Tue Jan 13, 2004 1:01 am    Post subject: Reply with quote

still doesn't work
Back to top View user's profile Send private message
jtc970
-


Joined: 24 Mar 2003
Posts: 172

PostPosted: Tue Jan 13, 2004 1:17 am    Post subject: Reply with quote

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 View user's profile Send private message
andyshen
-


Joined: 08 Dec 2003
Posts: 36

PostPosted: Tue Jan 13, 2004 3:29 am    Post subject: Reply with quote

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 View user's profile Send private message
jtc970
-


Joined: 24 Mar 2003
Posts: 172

PostPosted: Tue Jan 13, 2004 3:47 am    Post subject: Reply with quote

right above the
class emailer
line
Back to top View user's profile Send private message
andyshen
-


Joined: 08 Dec 2003
Posts: 36

PostPosted: Tue Jan 13, 2004 4:12 am    Post subject: Reply with quote

still doesn't work
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group