osCommerce 2.2 RC2 Windows (Win32) and mail 501 5.5.4 Invalid Address
October 1, 2008 at 10:22 pm 2 comments
PHP contains bug in the Win32 code which prevents most php to work corrently with sending emails.
The overall idea of solution (workaround) is to do not use NAME with EMAILS. So both TO and FROM fields must be in form “TO: john@localhost.org” or “FROM: john@localhost.org” but not “TO: “John Doe” <john@localhost.org>”
I recently encountered this problem with osCommerce.
Solution to overcome this:
- I added define to both includes\configure.php and admin\includes\configure.phpdefine(‘WIN32′, true);
- Then in includes\classes\emails.php and admin\includes\classes\email.php in “send” function find this lines:$to = (($to_name != ”) ? ‘”‘ . $to_name . ‘” <’ . $to_addr . ‘>’ : $to_addr);
$from = (($from_name != ”) ? ‘”‘ . $from_name . ‘” <’ . $from_addr . ‘>’ : $from_addr);and place following code BELOW them:
//WIN32 FIX
if (WIN32) {
$from = $from_addr;
$to = $to_addr;
}
That’s all, and now I can test email sending on my local win maching. Good luck!
Entry filed under: oscommerce, php. Tags: bug, mail, oscommerce, php, win32.
1.
AdvancedMicroDevices.org | June 17, 2010 at 12:38 pm
AdvancedMicroDevices.org, is professional outsource web design, web development, software development, website maintenance & graphic design company, in India, providing a full range of web & graphics services including ecommerce website design, flash website, SEO, vectorization, 360 virtual reality tours on affordable custom solutions to any type of companies. The company is dedicated in outsourcing professional Custom Web Design Solutions to offshore companies at affordable prices. Our unmatched experience and strong technological competence enables us to deliver scalable e-commerce solutions that meet customer’s needs and expectations with regard to its cost, quality and timeframe. We serve as the back office to Web Development companies all over the world. We unendingly keep track of the latest technological changes and improvements.
2.
custom software development company | June 28, 2011 at 7:59 pm
Nivista is Custom Software Development Company offers services in .NET Application
Development, Dynamic CRM, Sharepoint Application Developement, Business Intelligence
Reporting, OffShore Software Development etc. We are expertise in providing IT and ITES
solutions. Custom Software Development Company