osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Small bug on /includes/functions/general.php function tep_mail ?

This is a discussion on Small bug on /includes/functions/general.php function tep_mail ? within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; Trying to fix one of the several non-critical issues I still have on my OSCMAX, I noticed that when people ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Customization/Mods

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 08-28-2007, 06:20 AM
MindTwist's Avatar
Active Member
 
Join Date: Jun 2007
Location: Barcelona, Spain
Posts: 338
Thanks: 9
Thanked 26 Times in 25 Posts
Rep Power: 3
MindTwist will become famous soon enoughMindTwist will become famous soon enough
Default Small bug on /includes/functions/general.php function tep_mail ?

Trying to fix one of the several non-critical issues I still have on my OSCMAX, I noticed that when people email a question through /contact_us.php, they enter their name, email, and question, but on the email I was receiving their name was nowhere to be found.

From contact_us.php we are doing a:
tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, $enquiry, $name, $email_address);

And here the $name is passed right.

On /includes/funtions/general.php, on lines 1078-1080 we have:
----------
$to_name = preg_replace('/[\n|\r].*/', '', $to_name);
$email_subject = preg_replace('/[\n|\r].*/', '', $email_subject);
$from_email_name = preg_replace('/[\n|\r].*/', '', $from_name);
----------

Shouldn't this last line be "$from_email_name = preg_replace('/[\n|\r].*/', '', $from_email_name);" ? I changed that $from_name to $from_email_name and now the emails I receive through contact_us.php are showing up with the correct from, like "name <email@something.com>" instead of just "<email@something.com"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
  #2  
Old 08-28-2007, 09:59 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,484
Thanks: 73
Thanked 334 Times in 313 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default Re: Small bug on /includes/functions/general.php function tep_mail ?

You are correct. This bug has already been reported in the bugtracker and has already been fixed in the development repository. You should check the bugtracker to keep current with all reported issues.

210: Incorrect variable reference in tep_mail() causing missing sender's name in outgoing email - Bug Tracker - open source Commerce Maximized :: osCMax
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 08-28-2007, 10:55 AM
MindTwist's Avatar
Active Member
 
Join Date: Jun 2007
Location: Barcelona, Spain
Posts: 338
Thanks: 9
Thanked 26 Times in 25 Posts
Rep Power: 3
MindTwist will become famous soon enoughMindTwist will become famous soon enough
Default Re: Small bug on /includes/functions/general.php function tep_mail ?

Oooops... nevermind my post then.
When I started installing my OSCMAX store I download the latest version available for download on http://www.oscmax.com/project/osCMax , which I guess must be the same there is now, 2.0.0-RC3-0-1 from 2/Jan/2007, didn't know at the time I could download a development version or otherwise I might have done that.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 08-28-2007, 12:35 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,484
Thanks: 73
Thanked 334 Times in 313 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default Re: Small bug on /includes/functions/general.php function tep_mail ?

There is no dev package, but if you have an SVN client you can check out the latest source code from the repository.

oscmax2 - Google Code
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 08-28-2007, 11:18 PM
MindTwist's Avatar
Active Member
 
Join Date: Jun 2007
Location: Barcelona, Spain
Posts: 338
Thanks: 9
Thanked 26 Times in 25 Posts
Rep Power: 3
MindTwist will become famous soon enoughMindTwist will become famous soon enough
Default Re: Small bug on /includes/functions/general.php function tep_mail ?

Too late for me, but thanks anyway... I have already configured/tweaked/installed too much to do it again from scratch.
I had already browsed the bug tracker a couple weeks ago and applied the patches to the bugs that affected me, I guess that I either didn't go far enough in time, or that I just missed this one.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 08-29-2007, 11:46 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,484
Thanks: 73
Thanked 334 Times in 313 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default Re: Small bug on /includes/functions/general.php function tep_mail ?

Its never too late! That is the great thing about SVN, you can simply compare your existing code to the SVN code and just add in the changes.
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
Reply

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
Various small problems, well sort of small spottedhaggis osCMax v2 Installation issues 2 03-23-2006 08:53 AM
tep_mail ireader osCMax v1.7 Discussion 0 04-09-2005 03:33 PM
Webserver Upgraded to PHP v4.3.10 and TEP_MAIL won't work... TECH-OPS.net osCommerce 2.2 Modification Help 2 02-14-2005 09:32 AM
general.php hosed lhotch osCMax v1.7 Discussion 0 09-20-2004 12:37 PM
error in general.php line 23 miko osCommerce 2.2 Modification Help 3 02-06-2003 05:57 AM


All times are GMT -8. The time now is 12:44 AM.


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