Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 27
  1. #11
    Join Date
    Aug 2006
    Posts
    67
    Plugin Contributions
    0

    Default Re: Turning Send Welcome email option off ?

    Hi Guys,

    How can I add the username and password inside the customised welcome message that is sent to the user once they register?

    Regards,

    Hansi

  2. #12
    Join Date
    Aug 2007
    Posts
    6
    Plugin Contributions
    0

    Default Re: Turning Send Welcome email option off ?

    Quote Originally Posted by hansi View Post
    Hi Guys,

    How can I add the username and password inside the customised welcome message that is sent to the user once they register?

    Regards,

    Hansi
    me look for that too
    the code was there [preinstalled on admin/email_welcome.php] but not active for somehow. with the string tag [%s] defined from /includes/modules/create_account.php
    im on my search for the code to make that run.
    try compare the code on admin/email_welcome.php with drbyte's "add costumers from admin" module downloaded from zc-downloads page. that module works just fine. but i cant see their differences. perhaps on the [define] tag

    btw what version are you??

  3. #13
    Join Date
    Aug 2006
    Posts
    67
    Plugin Contributions
    0

    Default Re: Turning Send Welcome email option off ?

    Hi,

    I am on version 1.3.7.1. I have read somewhere that it is not possible to include the user id and password in the email because both values are encrypted with MD5 in the database.

    Regards,
    Hansi

    Quote Originally Posted by mbahoo View Post
    me look for that too
    the code was there [preinstalled on admin/email_welcome.php] but not active for somehow. with the string tag [%s] defined from /includes/modules/create_account.php
    im on my search for the code to make that run.
    try compare the code on admin/email_welcome.php with drbyte's "add costumers from admin" module downloaded from zc-downloads page. that module works just fine. but i cant see their differences. perhaps on the [define] tag

    btw what version are you??

  4. #14
    Join Date
    Aug 2007
    Posts
    6
    Plugin Contributions
    0

    Default Re: Turning Send Welcome email option off ?

    yes true it was encrypted..
    BUT..i swear the module i have said before can do such thing.
    off course it was unsafe though the password you type to the form field in admin side was not in asterix. and that is something.
    but again, if the the database was encrypted when DB connect, then it must be the password was sent by the form field directly to the welcome_email.php. not from database. thats make sense. no write-read-write process to the DB.

    i dont know how to work the standard installation out. i am a newbie. but, as a webmaster of my small company i shoud find out.

    duhh... this tiny important part of zen is killin me

  5. #15
    Join Date
    Aug 2006
    Posts
    67
    Plugin Contributions
    0

    Default Re: Turning Send Welcome email option off ?

    Is the name and passwd passed through the Session object? If this is the case, it looks like we could perhaps extract the name and passwd parameter from the Session Object parameter before it is saved (encrypted) to the database.

    What do you think?

    Hansi

  6. #16
    Join Date
    Jan 2004
    Posts
    66,447
    Plugin Contributions
    81

    Default Re: Turning Send Welcome email option off ?

    Quote Originally Posted by hansi View Post
    Is the name and passwd passed through the Session object? If this is the case, it looks like we could perhaps extract the name and passwd parameter from the Session Object parameter before it is saved (encrypted) to the database.
    No, it's not stored in session variables.

    You can reference it in the create_account module via $password or $_POST['password']
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #17
    Join Date
    Aug 2006
    Posts
    67
    Plugin Contributions
    0

    Default Re: Turning Send Welcome email option off ?

    Thank you very much Dr Byte for responding.

    I believe that to include the password in the welcome email I would somehow have to insert some PHP code here (in the create_account module):

    // add in regular email welcome text
    $email_text .= "\n\n" . "password:" . $password . EMAIL_TEXT . EMAIL_CONTACT . EMAIL_GV_CLOSURE;

    $html_msg['EMAIL_MESSAGE_HTML'] = str_replace('\n','',EMAIL_TEXT);
    $html_msg['EMAIL_CONTACT_OWNER'] = str_replace('\n','',EMAIL_CONTACT);
    $html_msg['EMAIL_CLOSURE'] = nl2br(EMAIL_GV_CLOSURE);

    How do I access the user name (e.g. $user or $_POST['user'])?


    Quote Originally Posted by DrByte View Post
    No, it's not stored in session variables.

    You can reference it in the create_account module via $password or $_POST['password']

  8. #18
    Join Date
    Aug 2006
    Posts
    67
    Plugin Contributions
    0

    Default Re: Turning Send Welcome email option off ?

    Sorry I meant the user-login name?

    Quote Originally Posted by hansi View Post
    Thank you very much Dr Byte for responding.

    I believe that to include the password in the welcome email I would somehow have to insert some PHP code here (in the create_account module):

    // add in regular email welcome text
    $email_text .= "\n\n" . "password:" . $password . EMAIL_TEXT . EMAIL_CONTACT . EMAIL_GV_CLOSURE;

    $html_msg['EMAIL_MESSAGE_HTML'] = str_replace('\n','',EMAIL_TEXT);
    $html_msg['EMAIL_CONTACT_OWNER'] = str_replace('\n','',EMAIL_CONTACT);
    $html_msg['EMAIL_CLOSURE'] = nl2br(EMAIL_GV_CLOSURE);

    How do I access the user name (e.g. $user or $_POST['user'])?

  9. #19
    Join Date
    Jan 2004
    Posts
    66,447
    Plugin Contributions
    81

    Default Re: Turning Send Welcome email option off ?

    The customer's login name is their email address.
    Do you really need to tell them their email address, when the email you're trying to send their password in is going to be sent TO that email address ?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  10. #20
    Join Date
    Aug 2007
    Posts
    6
    Plugin Contributions
    0

    Default Re: Turning Send Welcome email option off ?

    Quote Originally Posted by DrByte View Post
    The customer's login name is their email address.
    Do you really need to tell them their email address, when the email you're trying to send their password in is going to be sent TO that email address ?
    i think DrByte is absolutely right Hansi...
    by the way, DrByte..thanks for the tips on this thread and the other "old" one which is something about admin was forbidden when creating new product.
    Code:
    SecFilterEngine Off
    at the bottom of htaccess file really works. i almost give up hope and shutdown the shop and run back along the conventional way.
    one more thing, the "add customer from admin" module can show the password. why shouldnt default zen do the same. is there any missing part of the defined section??. i try to compare both add_costumer file but got different result each of them. at my first try with the default, the word "your password blablabla...is..." didnt even show up in both html and text email welcome.

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Do not send Welcome Email
    By bradymc in forum General Questions
    Replies: 5
    Last Post: 5 Jan 2010, 01:04 AM
  2. Send Welcome Email to New Registers?
    By precisiontronics in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 30 Jan 2009, 07:42 PM
  3. turning off walk in store option
    By earthlyinfo in forum Customization from the Admin
    Replies: 2
    Last Post: 30 Sep 2008, 07:45 AM
  4. Re-send Confirmation / Welcome Email
    By kwright in forum General Questions
    Replies: 3
    Last Post: 23 Jul 2008, 06:05 PM
  5. Send Welcome Email in HTML format
    By artcoder in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 14 Mar 2008, 07:03 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg