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; oh yes, and thanks for your help Neil I do appreciate it....


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
  #11  
Old 04-12-2004, 05:29 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

oh yes, and thanks for your help Neil I do appreciate it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #12  
Old 04-12-2004, 06: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

From one of your other posts you said you were using MIME email format.
If you haven't altered any files in that admin_21.zip that could be the "issue".

There may be something addressing that if the author has updated this contrib over at Oscommerce contributions or something in the contribs discussion over there.
__________________
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!
  #13  
Old 04-12-2004, 09: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

no, MIME is set to false, I think it always has been.
Is there any need to alter those files since it was already installed in MAX? It's funny that all the other emails are correct (new customer and order notices)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #14  
Old 04-12-2004, 10:20 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

No need to alter those files for the admin users.
To check if they have not been altered you could try comparing the originals with what you have.
textpad has a "compare" feature. A bit tedious doing it one by one but that would tell if they are different.

new customer and order notices are handled by different files included in the "stock standard" OSC.
admin_21 is a major contribution.

If you have access to more than 1 database you could install another standard Max in another directory and test your admin emails. If you still have problems then it is a server issue - email tech support of your server.
__________________
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!
  #15  
Old 04-13-2004, 12:13 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

I found the problem, thanks to someone from the osc board. I had to do the following:

Reviewing the files of this contribution and its README, it appears that both admin_account.php and admin_members.php compose an email using the function sprintf and ADMIN_EMAIL_TEXT. The language file for admin_members.php does indeed have a define for ADMIN_EMAIL_TEXT, but the language file for admin_account.php does not.

So, I would copy the define from admin_members.php into admin_account.php since it is missing, then see what happens.

It works just dandy now!!
Maybe someone should update that in the next download of MAX?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #16  
Old 04-13-2004, 03:39 AM
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

Excellent that you have worked it out & strange that it works without the "missing define" on some servers & not on others. Maybe the version of PHP?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #17  
Old 05-05-2004, 02:55 AM
Anonymous
Guest
 
Posts: n/a
Default

I had the same problem as well, and the same solution worked. FYI.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #18  
Old 05-05-2004, 02:56 AM
Lurker
 
Join Date: Dec 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Sandwich
Default

Erk, didn't notice I wasn't logged in. Sorry.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #19  
Old 05-27-2004, 12:34 PM
kodersoftware's Avatar
New Member
 
Join Date: Oct 2003
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
kodersoftware
Default

Thanks Kristine! This helped me too and I hope it gets fixed in the next releases.

To be specific, I added the following lines to /admin/languages/english/admin_account.php:
Code:
/* originally, these lines were missing.
 * added by jim
 * found fix at http://oscdox.com/index.php?name=PNphpBB2&file=viewtopic&t=2456&highlight=adminemailtext
 * (note: changed the wording a little since these are used for admin password resetting)
 */
define('ADMIN_EMAIL_SUBJECT', 'Admin Account Edit Complete');
define('ADMIN_EMAIL_TEXT', 'Hi %s,' . "\n\n" . 'You Your account has been editted.  Your new account login credentials are supplied below.' . "\n\n" . 'Website : %s' . "\n" . 'Username: %s' . "\n" . 'Password: %s' . "\n\n");
I changed line 54 in /admin/admin_account.php from
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'], $hiddenPassword, STORE_OWNER), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
to

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'], $HTTP_POST_VARS['admin_password']), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
(this removes the store name from the email because the admins probably know that already. it also uses the $HTTP_POST_VARS['admin_password'] instead of $hiddenPassword because $hiddenPassword doesn't exist in the admin_account.php script)

-Jim
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
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-11-2006 12:18 AM
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 08: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 03:50 AM.


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