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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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
| ||||
| ||||
| 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
| |||
| |||
| 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
| ||||
| ||||
| 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
| |||
| |||
| 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
| |||
| |||
| 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); |
|
#7
| ||||
| ||||
| 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. |
|
#8
| |||
| |||
| 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
| ||||
| ||||
| 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. |
|
#10
| |||
| |||
| 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. |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Email from Admin with Attachment? | Lobotaman | osCMax v2 Customization/Mods | 1 | 09-10-2006 11:18 PM |
| Email order notice to admin | razz2 | osCMax v1.7 Discussion | 3 | 02-10-2005 08:00 AM |
| html email in admin not working | battleaxe | osCMax v1.7 Discussion | 1 | 07-19-2004 07:11 AM |
| Admin email problem | robroymedia | osCMax v1.7 Discussion | 2 | 03-15-2004 02:23 AM |
| Email to Admin | angie201 | osCommerce 2.2 Modification Help | 2 | 03-19-2003 12:48 PM |