Text Formatted Code
// +---------------------------------------------------------------------------+
// | PEAR Settings |
// | |
// | Geeklog uses PEAR to send emails (see "Email Settings" below). Here you |
// | can tell Geeklog whether to use the PEAR packages installed on your |
// | server or to use the included packages. |
// +---------------------------------------------------------------------------+
// If your server is running PHP 4.3.0 (or newer) then chances are that PEAR
// is already installed and you can change this to: $_CONF['have_pear'] = true;
$_CONF['have_pear'] = false;
// Geeklog comes with the necessary PEAR packages and will pick them up from
// the following directory if $_CONF['have_pear'] = false (above).
$_CONF['path_pear'] = $_CONF['path_system'] . 'C:/geeklog/system/pear/';
// +---------------------------------------------------------------------------+
// | Email Settings |
// | |
// | Configure how Geeklog sends email: Via PHP's mail() function, sendmail, |
// | or via an SMTP server. |
// +---------------------------------------------------------------------------+
// To send email from Geeklog, you will need to select one of the following
// email backends:
// - 'mail', i.e. use PHP's built-in mail() function
// - 'sendmail', i.e. use the sendmail utility
// - 'smtp', i.e. talk directly to your SMTP server
// The default is 'mail' and will work in most environments.
$_CONF['mail_settings'] = array (
'backend' => 'mail', // can be one of 'mail', 'sendmail', 'smtp'
// sendmail parameters (only needed for 'backend' => 'sendmail')
//'sendmail_path' => '/usr/bin/sendmail',
//'sendmail_args' => '',
// SMTP parameters (only needed for 'backend' => 'smtp')
//'host' => 'smtp.gmail.com',
//'port' => '25',
//'auth' => false,
//'username' => '',
//'password' => ''
);
This is how my config is setup. Ok?
I followed your instructions and rechecked several times every step. still receiving the following error when checking for valid e-mail addy:
Text Formatted Code
/**
* Checks to see if email address is valid.
*
* This function checks to see if an email address is in the correct from.
*
* @param string $email Email address to verify
* @return boolean True if valid otherwise false
*
*/
function COM_isEmail( $email )
{
require_once( 'Mail/RFC822.php' );
$rfc822 = new Mail_RFC822;
return( $rfc822->isValidInetAddress( $email ) ? true : false );
}