meandrew Posted August 18, 2005 Posted August 18, 2005 Feeling rusty :( Could someone let me know where the command is for sending the customer an email upon account creation success please? I am making a minor modication and just need to know the flow of functions including the insert query :) Thank you Andrew
Guest Posted August 18, 2005 Posted August 18, 2005 I believe you need to look for the create_account_success.php in the catalog root. That is called from the create_account.php in the same dir. In this file is where an email is generated and send to the new member.
meandrew Posted August 18, 2005 Author Posted August 18, 2005 I believe you need to look for the create_account_success.php in the catalog root. That is called from the create_account.php in the same dir. In this file is where an email is generated and send to the new member. <{POST_SNAPBACK}> Thanks Enigma1 I've already got this far ;) It is the exact functions and mail() I am looking for as I want to rename this and create a new table for inserting into Andrew
meandrew Posted August 18, 2005 Author Posted August 18, 2005 Thanks Enigma1 I've already got this far ;) It is the exact functions and mail() I am looking for as I want to rename this and create a new table for inserting into Andrew <{POST_SNAPBACK}> and create a different email :)
♥Monika in Germany Posted August 18, 2005 Posted August 18, 2005 Thanks Enigma1 I've already got this far ;) It is the exact functions and mail() I am looking for as I want to rename this and create a new table for inserting into Andrew <{POST_SNAPBACK}> you will be able to locate functions in the functions folder. It's a good idea to get an editor that searches in your whole osC folder or any subfolder for an expression. To be honest, I did not understand your question as to what you want to accomplish, but for finding functions my tip will work :-) :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...
Guest Posted August 18, 2005 Posted August 18, 2005 the function that sends mail itself is called tep_mail() Within create_account.php see a couple of pages from the beginning if( error == false ) within the conditional block is where it sets up the email content and details.
meandrew Posted August 18, 2005 Author Posted August 18, 2005 you will be able to locate functions in the functions folder. It's a good idea to get an editor that searches in your whole osC folder or any subfolder for an expression. To be honest, I did not understand your question as to what you want to accomplish, but for finding functions my tip will work :-) <{POST_SNAPBACK}> Recommendation for software wold be good and free would be better :) What I am trying to accomplish is simple! I want to use the existing create_account.php form to add the same fileds to a new (different table) the create_account.php will be renamed as will the create_account_success.php however on doing this I don't wnat to send an email using the exsiting text, I therefore need to change the name of the mail() and create some new text :) are you with me on this so far :) Andrew
♥Monika in Germany Posted August 18, 2005 Posted August 18, 2005 Recommendation for software wold be good and free would be better :) What I am trying to accomplish is simple! I want to use the existing create_account.php form to add the same fileds to a new (different table) the create_account.php will be renamed as will the create_account_success.php however on doing this I don't wnat to send an email using the exsiting text, I therefore need to change the name of the mail() and create some new text :) are you with me on this so far :) Andrew <{POST_SNAPBACK}> I use textpad :-) You do not need to rename the function, it is filled with the content right before sending the email, you add email addys, subject and text right there, and not in the function ... create_account.php: // build the message content $name = $firstname . ' ' . $lastname; if (ACCOUNT_GENDER == 'true') { if ($gender == 'm') { $email_text = sprintf(EMAIL_GREET_MR, $lastname); } else { $email_text = sprintf(EMAIL_GREET_MS, $lastname); } } else { $email_text = sprintf(EMAIL_GREET_NONE, $firstname); } $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); subject is filled from the language file with the same name, as are a few fields for greeting etc :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...
meandrew Posted August 18, 2005 Author Posted August 18, 2005 I use textpad :-) You do not need to rename the function, it is filled with the content right before sending the email, you add email addys, subject and text right there, and not in the function ... create_account.php: // build the message content ? ? ?$name = $firstname . ' ' . $lastname; ? ? ?if (ACCOUNT_GENDER == 'true') { ? ? ? ? if ($gender == 'm') { ? ? ? ? ? $email_text = sprintf(EMAIL_GREET_MR, $lastname); ? ? ? ? } else { ? ? ? ? ? $email_text = sprintf(EMAIL_GREET_MS, $lastname); ? ? ? ? } ? ? ?} else { ? ? ? ?$email_text = sprintf(EMAIL_GREET_NONE, $firstname); ? ? ?} ? ? ?$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); subject is filled from the language file with the same name, as are a few fields for greeting etc <{POST_SNAPBACK}> I can't believe how dumb I was All I need to do is create a new EMAIL_WELCOME . EMAIL_TEXT :) I knew it was simple :)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.