Guest Doomdidoom Posted October 30, 2011 Share Posted October 30, 2011 Hi there Have some problems with sending an e-mail to the administrator after a new customer has registrated. I use CC 4.4.2. I've found a hint in this forum, I've tried so far but it doesn't work: includes\content\reg.in.php: $update = $db->update($glob['dbprefix'].'CubeCart_customer', $record, $where); // make email include("classes/htmlMimeMail.php"); $mail = new htmlMimeMail(); $text = "A new customer has registered.\r\nName: ".$record['firstName']." ".$record['lastName']." at ".$record['email']; $mail->setText($text); $mail->setReturnPath($config['masterEmail']); $mail->setFrom($config['masterName'].' <'.$config['masterEmail'].'>'); $mail->setSubject('New Customer'); $mail->setHeader('X-Mailer', 'CubeCart Mailer'); $send = $mail->send(array($config['masterEmail']), $config['mailMethod']); $sessData['customer_id'] = $emailArray[0]['customer_id']; $update = $db->update($glob['dbprefix'].'CubeCart_sessions', $sessData,'`sessId`='.$db->mySQLSafe($GLOBALS[CC_SESSION_NAME])); $redir = sanitizeVar(urldecode($_GET['redir'])); I've activated the "SMTP"-Function in the admin-section, localhost, 25 and authentificatio: no Is there another way to get these e-mails? It's urgent, my customer needs it til Wednesday :on2long: Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.