osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 04-04-2004, 09:46 AM
Active Member
 
Join Date: Feb 2004
Posts: 174
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
Kristine is an unknown quantity at this point
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 04-08-2004, 04:35 PM
neil's Avatar
Active Member
 
Join Date: Nov 2002
Posts: 245
Thanks: 9
Thanked 7 Times in 6 Posts
Rep Power: 6
neil is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 04-09-2004, 04:24 PM
Active Member
 
Join Date: Feb 2004
Posts: 174
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
Kristine is an unknown quantity at this point
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!');
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 04-10-2004, 02:56 PM
neil's Avatar
Active Member
 
Join Date: Nov 2002
Posts: 245
Thanks: 9
Thanked 7 Times in 6 Posts
Rep Power: 6
neil is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 04-10-2004, 03:07 PM
Anonymous
Guest
 
Posts: n/a
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);
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 04-10-2004, 04:01 PM
Active Member
 
Join Date: Feb 2004
Posts: 174
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
Kristine is an unknown quantity at this point
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??
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 04-11-2004, 08:27 PM
neil's Avatar
Active Member
 
Join Date: Nov 2002
Posts: 245
Thanks: 9
Thanked 7 Times in 6 Posts
Rep Power: 6
neil is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8  
Old 04-12-2004, 06:49 AM
Active Member
 
Join Date: Feb 2004
Posts: 174
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
Kristine is an unknown quantity at this point
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??
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #9  
Old 04-12-2004, 02:37 PM
neil's Avatar
Active Member
 
Join Date: Nov 2002
Posts: 245
Thanks: 9
Thanked 7 Times in 6 Posts
Rep Power: 6
neil is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #10  
Old 04-12-2004, 04:23 PM
Active Member
 
Join Date: Feb 2004
Posts: 174
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
Kristine is an unknown quantity at this point
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 02:49 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax