Solan Posted June 23, 2009 Posted June 23, 2009 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! :)
multimixer Posted June 23, 2009 Posted June 23, 2009 I didn't understood exactly what you need My community profile | Template system for osCommerce - New: Responsive | Feedback channel
Solan Posted June 23, 2009 Author Posted June 23, 2009 i mean that i would like to know when a customer creates an account :P Not only when a customer makes an order...
multimixer Posted June 23, 2009 Posted June 23, 2009 I think you need to do in create_account.php something similar like what is happening in checkout_process.php What have you tried so far? My community profile | Template system for osCommerce - New: Responsive | Feedback channel
multimixer Posted June 24, 2009 Posted June 24, 2009 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 My community profile | Template system for osCommerce - New: Responsive | Feedback channel
leohee8 Posted June 25, 2009 Posted June 25, 2009 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.
leohee8 Posted June 25, 2009 Posted June 25, 2009 for info: i test this on windows server, it is affect anything?
multimixer Posted June 25, 2009 Posted June 25, 2009 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? My community profile | Template system for osCommerce - New: Responsive | Feedback channel
leohee8 Posted June 25, 2009 Posted June 25, 2009 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?
Platinum Games Posted June 25, 2009 Posted June 25, 2009 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
avaya1 Posted September 7, 2009 Posted September 7, 2009 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
jackanderson Posted September 8, 2009 Posted September 8, 2009 , 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
avaya1 Posted September 8, 2009 Posted September 8, 2009 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... wow ... let me try this
avaya1 Posted September 8, 2009 Posted September 8, 2009 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... Thanks a lot!!!! Works perfectly)
jackanderson Posted September 8, 2009 Posted September 8, 2009 Thanks a lot!!!! Works perfectly) You're welcome mate.. although multimixer did the hard part.. :) Cheers.. Converge
catch Posted November 2, 2009 Posted November 2, 2009 That is greate :thumbsup: . I will use it too :rolleyes:
mrnevets Posted August 26, 2011 Posted August 26, 2011 :thumbsup: Awesome! He who sits in jelly, has ass in jam.
apolyshow Posted January 24, 2012 Posted January 24, 2012 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...
apolyshow Posted January 24, 2012 Posted January 24, 2012 No i can get any extra emails. I have fix the error but no new emails...Any help? One amateur made the Arc, 5.000 pro made the Titanic...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.