osCmax v2.5 User Manual
Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Email from the admin?

This is a discussion on Email from the admin? within the osCmax v1.7 Discussion forums, part of the osCmax v1.7 Forums category; When I change the password to my admin I get an email, but the subject says: ADMIN_EMAIL_SUBJECT and the body ...

      
  1. #1
    Active Member
    Join Date
    Feb 2004
    Posts
    174
    Rep Power
    9


    Default Email from the admin?

    When I change the password to my admin I get an email, but the subject says: ADMIN_EMAIL_SUBJECT and the body of the email only has: ADMIN_EMAIL_TEXT ? Should that not contain a real subject and text?

  2. #2
    Active Member neil's Avatar
    Join Date
    Nov 2002
    Posts
    248
    Rep Power
    10


    Default

    Yes.
    ADMIN_EMAIL_SUBJECT
    Wherever you see capitals like that _ seperated by underscores you can bet these are variables which are dynamically produced by php & mysql.
    I'd search your language directory - for the file that defines those variables.
    Ok - In:
    admin/includes/languages/english/admin_members.php
    Line 71
    define('ADMIN_EMAIL_SUBJECT', 'New Admin Member');

    Any good text editor allows you to search files this way & show line numbers. I use TextPad - textpad.com
    HTH
    Neil
    www.12website.com

    "You can have everything in life that you want if you will just help enough other people get what they want."
    Zig Ziglar

  3. #3
    Active Member
    Join Date
    Feb 2004
    Posts
    174
    Rep Power
    9


    Default

    well I found this, but what should I do with it??
    Code:
    define('ADMIN_EMAIL_SUBJECT', 'New Admin Member');
    define('ADMIN_EMAIL_TEXT', 'Hi %s,' . "\n\n" . 'You can access the admin panel with the following password. Once you access the admin, please change your password!' . "\n\n" . 'Website : %s' . "\n" . 'Username: %s' . "\n" . 'Password: %s' . "\n\n" . 'Thanks!' . "\n" . '%s' . "\n\n" . 'This is an automated response, please do not reply!');

  4. #4
    Active Member neil's Avatar
    Join Date
    Nov 2002
    Posts
    248
    Rep Power
    10


    Default

    Ok,
    That is the text that is inserted into the "subject" & the "message body" of the email and that as it should be - so that file is OK.
    I think what you have done is changed the file/s that actually generate the email and removed the strings 'ADMIN_EMAIL_SUBJECT' & 'ADMIN_EMAIL_TEXT'.
    Search the originals of the files you have changed for the strings 'ADMIN_EMAIL_SUBJECT' & 'ADMIN_EMAIL_TEXT' & replace where necessary.
    I'll have a look for the file/s as well that do that.

    If you haven't already check out the info at:-
    http://wiki.oscommerce.com/docs
    HTH
    Neil
    www.12website.com

    "You can have everything in life that you want if you will just help enough other people get what they want."
    Zig Ziglar

  5. #5
    Anonymous
    Guest


    Default

    Hi again,
    There is a reference to those strings - 'ADMIN_EMAIL_SUBJECT' & 'ADMIN_EMAIL_TEXT' in admin/admin_members.php on line 52.

    The whole line is here:-
    tep_mail($HTTP_POST_VARS['admin_firstname'] . ' ' . $HTTP_POST_VARS['admin_lastname'], $HTTP_POST_VARS['admin_email_address'], ADMIN_EMAIL_SUBJECT, sprintf(ADMIN_EMAIL_TEXT, $HTTP_POST_VARS['admin_firstname'], HTTP_SERVER . DIR_WS_ADMIN, $HTTP_POST_VARS['admin_email_address'], $makePassword, STORE_OWNER), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

  6. #6
    Active Member
    Join Date
    Feb 2004
    Posts
    174
    Rep Power
    9


    Default

    the thing is, I haven't changed any files *as far as I know*
    When I've signed up as a new customer all the emails have been fine, this only happened when I changed the password to the admin section?
    I found the code mentioned above in admin/admin_members.php
    Code:
              tep_mail($HTTP_POST_VARS['admin_firstname'] . ' ' . $HTTP_POST_VARS['admin_lastname'], $HTTP_POST_VARS['admin_email_address'], ADMIN_EMAIL_SUBJECT, sprintf(ADMIN_EMAIL_TEXT, $HTTP_POST_VARS['admin_firstname'], HTTP_SERVER . DIR_WS_ADMIN, $HTTP_POST_VARS['admin_email_address'], $makePassword, STORE_OWNER), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
    I don't understand how this happened, I haven't been in any of these files??

  7. #7
    Active Member neil's Avatar
    Join Date
    Nov 2002
    Posts
    248
    Rep Power
    10


    Default

    Strange,
    It will usually only display the capitals seperated by underscores
    eg. "STORE_OWNER_EMAIL_ADDRESS"
    when this has been deleted from a file.
    I assume you have define everything needed in admin/configuration for your store.
    Have a re read of the notes with that contribution and see what you can find.
    HTH
    Neil
    www.12website.com

    "You can have everything in life that you want if you will just help enough other people get what they want."
    Zig Ziglar

  8. #8
    Active Member
    Join Date
    Feb 2004
    Posts
    174
    Rep Power
    9


    Default

    ok maybe I need to define something?? But I have no idea what to do? Sorry! I don't know what contrib to look at for the readme notes??

  9. #9
    Active Member neil's Avatar
    Join Date
    Nov 2002
    Posts
    248
    Rep Power
    10


    Default

    This MAY be happening if you use MIME email format as the default works great
    To find the info.
    Included in your download of MAX is a "contributions" directory or folder containing all the contribs used in MAX.
    admin_21.zip has all the files + 2 read me files
    NOTE: There are also 2 read me files by Michael Sasek in the top level of your MAX download which should / (must - I think) be read.
    HTH
    Neil
    www.12website.com

    "You can have everything in life that you want if you will just help enough other people get what they want."
    Zig Ziglar

  10. #10
    Active Member
    Join Date
    Feb 2004
    Posts
    174
    Rep Power
    9


    Default

    yes, I figured that was the contib, I read those. I'll go re-read the ones by Michael maybe I'll come up with something?
    Trust me when I say, I try to find the answers on my own before posting here.

Page 1 of 2 12 LastLast

Similar Threads

  1. Email from Admin with Attachment?
    By Lobotaman in forum osCmax v2 Customization/Mods
    Replies: 1
    Last Post: 09-10-2006, 11:18 PM
  2. Email order notice to admin
    By razz2 in forum osCmax v1.7 Discussion
    Replies: 3
    Last Post: 02-10-2005, 07:00 AM
  3. html email in admin not working
    By battleaxe in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 07-19-2004, 07:11 AM
  4. Admin email problem
    By robroymedia in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 03-15-2004, 01:23 AM
  5. Email to Admin
    By angie201 in forum osCommerce 2.2 Modification Help
    Replies: 2
    Last Post: 03-19-2003, 11:48 AM

Bookmarks

Posting Permissions

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