azarudeen Posted December 21, 2012 Posted December 21, 2012 Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wamp\www\oscommerce-2.3.3\catalog\includes\classes\email.php on line 522 Warning: Cannot modify header information - headers already sent by (output started at C:\wamp\www\oscommerce-2.3.3\catalog\includes\classes\email.php:522) in C:\wamp\www\oscommerce-2.3.3\catalog\includes\functions\general.php on line 49 i got these two warnings when i confirm the order in os commerce 2.3.3. please help me. how to rectify this.. email.php general.php checkout_confirmation.php checkout_success.php
www.in.no Posted December 21, 2012 Posted December 21, 2012 @@azarudeen Cannot modify header information - you find many help topics on in the forum. Do a search. Most likely white spaces in code. And you running this on a windows setup. Do you have a mailserver running at your computer providing smtp service at port 25 at all.
germ Posted December 21, 2012 Posted December 21, 2012 Forget the "Headers already sent" error - It's caused by the first error, which as the previous poster alluded to the fact you probably don't have a "mail server" set-up on your PC. :blush: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Guest Posted December 21, 2012 Posted December 21, 2012 @@azarudeen The use of WAMP or any other local environment software to set up your osCommerce store is ONLY so you can complete MOST of the work before uploading the cart to a live server. SOME of the functions will not work in a local environment, like email for example. Chris
rpdesign Posted December 21, 2012 Posted December 21, 2012 I have run emails successfully in a localhost environment using xampp for windows v1.7.3 You must have a mailserver properly configured inyour localhost environment! This is only for testing purposes only! The trick is to modify some files only to be run in a localhost environment. After testing your site and emails uncomment out the error checking. See my thread here http://www.oscommerce.com/forums/topic/390827-email-in-a-localhost-environment/ or if your interested in setting up a virtualhost see here: http://www.oscommerce.com/forums/topic/390826-making-a-virtual-host-emvironment-in-xampp-for-windows/ Always backup your files! You will be glad you didMy add-ons :SSPP Seperate Shipping Per Product v2.5| SupportGift vouchers for SPPC 4.22 v2.1 | Support |Catalog Infobox v1.0 | Sorry no support for Catalog Infobox |HTML Mail v2.0 | Support |Upcoming Add ons:Addon Manager | Separate Pricing Per Product Qty |Coupon Populate | EZ-PDF Catalog
Guest Posted December 21, 2012 Posted December 21, 2012 @@azarudeen Again, let me reiterate, local environments should only be used up to a certain point. After which you should move your site to a live server for testing. Chris
Recommended Posts
Archived
This topic is now archived and is closed to further replies.