Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

New costumer notification?


Solan

Recommended Posts

is there a way to make them come to more emails than just the regular email adress?

 

Sometimes customers just make an account without bying and i would like to recive an email of that to more than just one email.. is that possible?

 

Thanks! :)

Link to comment
Share on other sites

Ok, here we are, I worked this out, for you, for me, and for who ever else believe to need such a thing

 

1) In file catalog/create_account.php

 

Find the lines

 $email_text .= EMAIL_WELCOME . EMAIL_TEXT . EMAIL_CONTACT . EMAIL_WARNING;
  tep_mail($name, $email_address, EMAIL_SUBJECT, $email_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

 

Place after

	  // BOF multimixer 24.6.2009 send emails to other people
  $owners_text = EMAIL_TEXT_OWNER_INFO . "\r\n" .EMAIL_TEXT_CUSTOMER_NAME . ' ' . $name . "\r\n" . EMAIL_TEXT_CUSTOMER_EMAIL . ' ' .  $email_address . "\r\n" . EMAIL_TEXT_CUSTOMER_PHONE . ' ' . $telephone . "\r\n" . EMAIL_TEXT_CUSTOMER_ADDRESS . ' ' . $street_address . "\r\n" . EMAIL_TEXT_CUSTOMER_CITY . ' ' . $city . "\r\n" . EMAIL_TEXT_CUSTOMER_STATE . ' ' . $state . "\r\n" . EMAIL_TEXT_CUSTOMER_COUNTRY . ' ' . $country;

  if (SEND_EXTRA_ORDER_EMAILS_TO != '') {
tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_OWNER_SUBJECT, $owners_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
 }

 // EOF multimixer

 

2) In file catalog/includes/laguages/yourlanguage/create_account.php

 

Put before the end

// mm 24.6.09
define('EMAIL_OWNER_SUBJECT', 'New registration' );
define('EMAIL_TEXT_OWNER_INFO', 'New customer registration, find details below:');
define('EMAIL_TEXT_CUSTOMER_NAME', 'Name:' );
define('EMAIL_TEXT_CUSTOMER_EMAIL', 'email:' );
define('EMAIL_TEXT_CUSTOMER_PHONE', 'Phone:' );
define('EMAIL_TEXT_CUSTOMER_ADDRESS', 'Address:');
define('EMAIL_TEXT_CUSTOMER_CITY', 'City:' );
define('EMAIL_TEXT_CUSTOMER_STATE', 'State:');
define('EMAIL_TEXT_CUSTOMER_COUNTRY', 'Country:');

 

This will send an email to the additional email as set in admin for every new customer registration.

 

Because you don't want to read each time the "hello bla bla" text that the customer receives, it contains just the useful information, name, email etc

 

Hope it works for you

Link to comment
Share on other sites

when i try to signup, it will return error (warning) message says "SMTP server 500 <[email protected]> no such user", i wonder why this message prompt. the mail server require authendication to send mail, but why the system care about the $to email address, not pick up from store owner email?

 

even i modify the include/classes/mail.php, i hard-code my valid email address into send mail function, the message still shows no such user, the email which I use to signup.

Link to comment
Share on other sites

when i try to signup, it will return error (warning) message says "SMTP server 500 <[email protected]> no such user", i wonder why this message prompt. the mail server require authendication to send mail, but why the system care about the $to email address, not pick up from store owner email?

 

even i modify the include/classes/mail.php, i hard-code my valid email address into send mail function, the message still shows no such user, the email which I use to signup.

 

.

 

Do not hardcode anything by your self. The sign up process (and mail) is cooked in create_account.php and there is no "$to email address" in create_account.php

 

Maybe you try to do changes in files that are not involved?

 

How are your admin settings for sending mail?

Link to comment
Share on other sites

OK, there is no "$to email address", i mean "$to", the email address for new signup.

 

the message shows the error occur in 'includes/classes/mail.php' line 522, this line is mail function. I have restored the backup file but still the same, warning message comes out.

 

in my admin send mail setting, my settings are below:

 

E-Mail Transport Method: smtp

E-Mail Linefeeds: CRLF

Use MIME HTML When Sending Emails: true

Verify E-Mail Addresses Through DNS: false

Send E-Mails: true

 

during the testing, I found no problem at all when I use "[email protected]" to signup, it is because mail.leohee.com is shared IP with the smtp IP in my host provider (base on server phpinfo), problem with other email for example: yahoo, gmail or hotmail.

 

I also found there is a function to validate email, is this the reason? can I disable this function?

Link to comment
Share on other sites

Ok, here we are, I worked this out, for you, for me, and for who ever else believe to need such a thing

 

1) In file catalog/create_account.php

 

Find the lines

 $email_text .= EMAIL_WELCOME . EMAIL_TEXT . EMAIL_CONTACT . EMAIL_WARNING;
  tep_mail($name, $email_address, EMAIL_SUBJECT, $email_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

 

Place after

	  // BOF multimixer 24.6.2009 send emails to other people
  $owners_text = EMAIL_TEXT_OWNER_INFO . "\r\n" .EMAIL_TEXT_CUSTOMER_NAME . ' ' . $name . "\r\n" . EMAIL_TEXT_CUSTOMER_EMAIL . ' ' .  $email_address . "\r\n" . EMAIL_TEXT_CUSTOMER_PHONE . ' ' . $telephone . "\r\n" . EMAIL_TEXT_CUSTOMER_ADDRESS . ' ' . $street_address . "\r\n" . EMAIL_TEXT_CUSTOMER_CITY . ' ' . $city . "\r\n" . EMAIL_TEXT_CUSTOMER_STATE . ' ' . $state . "\r\n" . EMAIL_TEXT_CUSTOMER_COUNTRY . ' ' . $country;

  if (SEND_EXTRA_ORDER_EMAILS_TO != '') {
tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_OWNER_SUBJECT, $owners_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
 }

 // EOF multimixer

 

2) In file catalog/includes/laguages/yourlanguage/create_account.php

 

Put before the end

// mm 24.6.09
define('EMAIL_OWNER_SUBJECT', 'New registration' );
define('EMAIL_TEXT_OWNER_INFO', 'New customer registration, find details below:');
define('EMAIL_TEXT_CUSTOMER_NAME', 'Name:' );
define('EMAIL_TEXT_CUSTOMER_EMAIL', 'email:' );
define('EMAIL_TEXT_CUSTOMER_PHONE', 'Phone:' );
define('EMAIL_TEXT_CUSTOMER_ADDRESS', 'Address:');
define('EMAIL_TEXT_CUSTOMER_CITY', 'City:' );
define('EMAIL_TEXT_CUSTOMER_STATE', 'State:');
define('EMAIL_TEXT_CUSTOMER_COUNTRY', 'Country:');

 

This will send an email to the additional email as set in admin for every new customer registration.

 

Because you don't want to read each time the "hello bla bla" text that the customer receives, it contains just the useful information, name, email etc

 

Hope it works for you

 

works perfect for me - make a addon with it nice and easy! thanks heaps.

Thanks in advance!

 

Ben

Link to comment
Share on other sites

  • 1 month later...
  • 3 weeks later...
Ok, here we are, I worked this out, for you, for me, and for who ever else believe to need such a thing

 

1) In file catalog/create_account.php

 

Find the lines

 $email_text .= EMAIL_WELCOME . EMAIL_TEXT . EMAIL_CONTACT . EMAIL_WARNING;
  tep_mail($name, $email_address, EMAIL_SUBJECT, $email_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

 

Place after

	  // BOF multimixer 24.6.2009 send emails to other people
  $owners_text = EMAIL_TEXT_OWNER_INFO . "\r\n" .EMAIL_TEXT_CUSTOMER_NAME . ' ' . $name . "\r\n" . EMAIL_TEXT_CUSTOMER_EMAIL . ' ' .  $email_address . "\r\n" . EMAIL_TEXT_CUSTOMER_PHONE . ' ' . $telephone . "\r\n" . EMAIL_TEXT_CUSTOMER_ADDRESS . ' ' . $street_address . "\r\n" . EMAIL_TEXT_CUSTOMER_CITY . ' ' . $city . "\r\n" . EMAIL_TEXT_CUSTOMER_STATE . ' ' . $state . "\r\n" . EMAIL_TEXT_CUSTOMER_COUNTRY . ' ' . $country;

  if (SEND_EXTRA_ORDER_EMAILS_TO != '') {
tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_OWNER_SUBJECT, $owners_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
 }

 // EOF multimixer

 

2) In file catalog/includes/laguages/yourlanguage/create_account.php

 

Put before the end

// mm 24.6.09
define('EMAIL_OWNER_SUBJECT', 'New registration' );
define('EMAIL_TEXT_OWNER_INFO', 'New customer registration, find details below:');
define('EMAIL_TEXT_CUSTOMER_NAME', 'Name:' );
define('EMAIL_TEXT_CUSTOMER_EMAIL', 'email:' );
define('EMAIL_TEXT_CUSTOMER_PHONE', 'Phone:' );
define('EMAIL_TEXT_CUSTOMER_ADDRESS', 'Address:');
define('EMAIL_TEXT_CUSTOMER_CITY', 'City:' );
define('EMAIL_TEXT_CUSTOMER_STATE', 'State:');
define('EMAIL_TEXT_CUSTOMER_COUNTRY', 'Country:');

 

This will send an email to the additional email as set in admin for every new customer registration.

 

Because you don't want to read each time the "hello bla bla" text that the customer receives, it contains just the useful information, name, email etc

 

Hope it works for you

,

 

I do not know why, but it did not work for me, I followed your instructions exactly, updated both files create_account.php but I still do not get registration notifications, any advise?

 

thanks

Link to comment
Share on other sites

,

 

I do not know why, but it did not work for me, I followed your instructions exactly, updated both files create_account.php but I still do not get registration notifications, any advise?

 

thanks

 

In your Admin, My Store, do you have an email set for "Send Extra Order Emails to" ? You'll need an email there for this mod to work...

Converge

Link to comment
Share on other sites

  • 1 month later...
  • 1 year later...
  • 4 months later...

I am taking this error:

 

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/iliofosg/public_html/star/includes/languages/greek/create_account.php:65) in /home/iliofosg/public_html/star/includes/functions/sessions.php on line 102

 

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/iliofosg/public_html/star/includes/languages/greek/create_account.php:65) in /home/iliofosg/public_html/star/includes/functions/sessions.php on line 102

 

Warning: Cannot modify header information - headers already sent by (output started at /home/iliofosg/public_html/star/includes/languages/greek/create_account.php:65) in /home/iliofosg/public_html/star/includes/functions/general.php on line 45

 

and my code is

 

$email_text .= EMAIL_WELCOME . EMAIL_TEXT . EMAIL_CONTACT . EMAIL_WARNING;

//--- Beginning of addition: Ultimate HTML Emails ---//

}

if

 

(ULTIMATE_HTML_EMAIL_DEVELOPMENT_MODE === 'true'){

 

//Save the contents of the generated html email to the harddrive in .htm file. This can be practical when developing a new layout.

$TheFileName =

'Last_mail_from_create_account.php.htm';

$TheFileHandle = fopen($TheFileName,

'w') or die("can't open error log file");

fwrite($TheFileHandle, $email_text);

fclose($TheFileHandle);

}

//--- End of addition: Ultimate HTML Emails ---//

tep_mail($name, $email_address, EMAIL_SUBJECT, $email_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

 

 

// BOF multimixer 24.6.2009 send emails to other people

$owners_text = EMAIL_TEXT_OWNER_INFO .

"\r\n" .EMAIL_TEXT_CUSTOMER_NAME . ' ' . $name . "\r\n" . EMAIL_TEXT_CUSTOMER_EMAIL . ' ' . $email_address . "\r\n" . EMAIL_TEXT_CUSTOMER_PHONE . ' ' . $telephone . "\r\n" . EMAIL_TEXT_CUSTOMER_ADDRESS . ' ' . $street_address . "\r\n" . EMAIL_TEXT_CUSTOMER_CITY . ' ' . $city . "\r\n" . EMAIL_TEXT_CUSTOMER_STATE . ' ' . $state . "\r\n" . EMAIL_TEXT_CUSTOMER_COUNTRY . ' ' . $country;

 

 

if (SEND_EXTRA_ORDER_EMAILS_TO != '') {

tep_mail(

'', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_OWNER_SUBJECT, $owners_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

}

 

 

// EOF multimixer

One amateur made the Arc, 5.000 pro made the Titanic...

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...