Jump to content

E-Mail to Administrator after new registration


Guest Doomdidoom

Recommended Posts

Guest Doomdidoom

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:

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...