mallyonline Posted February 14, 2006 Posted February 14, 2006 Hi, Right after configuring this code if (EMAIL_TRANSPORT == 'smtp') { include_once("Mail.php"); $headers["From"] = $from; $headers["To"] = $to_addr; $headers["Subject"] = $subject; $headers["Bcc"] = "[email protected]"; $params["host"] = "yourdomain.com"; $params["port"] = "25"; $params["auth"] = false; $params["username"] = "user"; $params["password"] = "password"; // Create the mail object using the Mail::factory method $mail_object =& Mail::factory("smtp", $params); return $mail_object->send("$to_addr, [email protected]", $headers, $this->output); } } I get the errors Warning: send(Mail.php): failed to open stream: No such file or directory in C:\Inetpub\phpbb2\oscommerce\oscommerce-2.2ms2-051113\catalog\includes\classes\email.php on line 501 above is this code include_once("Mail.php"); Warning: send(): Failed opening 'Mail.php' for inclusion (include_path='.;c:\php4\pear') in C:\Inetpub\phpbb2\oscommerce\oscommerce-2.2ms2-051113\catalog\includes\classes\email.php on line 501 Fatal error: Undefined class name 'mail' in C:\Inetpub\phpbb2\oscommerce\oscommerce-2.2ms2-051113\catalog\includes\classes\email.php on line 515 the above code is $mail_object =& Mail::factory("smtp", $params); any help please mal
mallyonline Posted February 14, 2006 Author Posted February 14, 2006 UPdate+++ after reading it again I thought maybe I could just copy the file into the right directory copied mail.php into >includes> classes and got another error Fatal error: Cannot redeclare tep_db_connect() (previously declared in C:\Inetpub\phpbb2\oscommerce\oscommerce-2.2ms2-051113\catalog\includes\functions\database.php:13) in C:\Inetpub\phpbb2\oscommerce\oscommerce-2.2ms2-051113\catalog\includes\functions\database.php on line 13 any ideas anyone. That line includes this code function tep_db_connect($server = DB_SERVER, $username = DB_SERVER_USERNAME, $password = DB_SERVER_PASSWORD, $database = DB_DATABASE, $link = 'db_link') {
Recommended Posts
Archived
This topic is now archived and is closed to further replies.