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?
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 ...
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?
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
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!');
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
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);
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
I don't understand how this happened, I haven't been in any of these files??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);
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
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??
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
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.
Bookmarks