Guest Posted February 13, 2003 Share Posted February 13, 2003 :whaasup: Hi happy SMTP campers...:lol: Well I'm getting somewhere now :arrow: , at least I can send "some mail" using Windows and SMTP Running osCommerce "tep_snapshot-20030212" for Windows, on Windows 2000 "Localhost Server", mysql-3.23.55-win, php-4.3.0 and phpMyAdmin-2.4.0, (this is my own Home/PC for testing/Learning purpose) I am now succefully sending email from Admin Area and Newsletter area to customers fine... --------------------------------------------------- My SMTP Settings in :bomb: "c:/winnt/php.ini" --------------------------------------------------- [mail function] ; For Win32 only. SMTP = mail.maxidvd.com ; for Win32 only ; For Win32 only. sendmail_from = [email protected] ; for Win32 only --------------------------------------------------- osCommerce Email Settings (:bomb: Admin) --------------------------------------------------- E-Mail Transport Method: smtp E-Mail Linefeeds: CRLF Use MIME HTML When Sending Emails: false Verify E-Mail Addresses Through DNS: false Send E-Mails: true Error generated below when - "Check-out", "Customer Registration" or "Tell a friend" is used. Warning: mail(:onfire:) [function.mail]: SMTP server response: 451 See http://pobox.com/~djb/docs/smtplf.html . in c:inetpubwwwrootcatalogincludesclassesemail.php on line 500 Can anyone explain to me :stupid: why one email sending feature might work perfectly fine and not the other. and i'm not searching for "SMTP and Windows" again! I read everything twice.... If all else fails - I did what everyone was doing, give-up on windows servers and go for Linux/apache, now I have 3 web hosts 2 x WIN2K (no mail working) and 1 x Linux/apache - with working mail feature. Does anyone actually have a working/live Windows/2000/XP osCommerce store up-and-running that I can look at? post your :idea: website below or send me the link via email, very interested to see how its set-up. Cheers Lee Nielsen :oha: Link to comment Share on other sites More sharing options...
mcgyver7923 Posted February 13, 2003 Share Posted February 13, 2003 Hi, My settings are the same except with a different smtp server and e-mail address and this is the error I get: Warning: Failed to Receive in c:phpdevwwwadminincludesclassesemail.php on line 460 Warning: Cannot add header information - headers already sent by (output started at c:phpdevwwwadminincludesclassesemail.php:460) in c:phpdevwwwadminincludesfunctionsgeneral.php on line 18 Any one know why??? Thanks!! -Richard -Richard --------------------------------------------------- Where would I be without the Forums?!?! Link to comment Share on other sites More sharing options...
nick61 Posted February 18, 2003 Share Posted February 18, 2003 Glad to see this problem mentioned here. I have absolutely the same trouble (same message about crlf when creating users accounts). Must say that I have a phpBB on same machine (win2k) working perfectly fine with smtp/e-mails. Could someone help? Thanks, Nick Link to comment Share on other sites More sharing options...
Guest Posted February 19, 2003 Share Posted February 19, 2003 Hi, I had the same errors: " Warning: Failed to Receive in c:phpdevwwwadminincludesclassesemail.php on line 460 Warning: Cannot add header information - headers already sent by (output started at c:phpdevwwwadminincludesclassesemail.php:460) in c:phpdevwwwadminincludesfunctionsgeneral.php on line 18 " with my w2k installation. The messages were due to failure in sending a mail by the smtp server. OSC did not handle the error very well. When I had the smtp server configured correct the error messages were no more in OSC. I had to setup the relay option of the smtp server to solve this. Btw I am using the smtp server that comes with w2k server. /Fred Link to comment Share on other sites More sharing options...
Guest Posted February 19, 2003 Share Posted February 19, 2003 Is there a trouble shooting guide that could explain why it happens, has anyone fixed this problem? perhaps you could shed some light on the subject for us.... I still have not had any success, I tried bot my windows 2000 smtp and a external relay server but its the same thing. it cant be a whitespace problem could it? I would have thought by downloading the latest osCommerce package for windoes that the "whitespace's" would have been ironed out by now. Cheers lee Link to comment Share on other sites More sharing options...
nick61 Posted February 20, 2003 Share Posted February 20, 2003 Ok, guys, for those who are win2k hanging :) I've made some progress. The problem is combined from php AND OSCOMMERCE ! (pls. development team, get a win2k machine and make some tests, I've noticed that most probably your answers here are suppositions, because most of the team is linux trapped :) First of all, the problem really seems to be the "bare lf", i.e. php for win32/oscommerce are trying to send the mails, but the qmail agent from the connection provider does reject it, because there are Carriage Returns missing in headers. It does not matter what settings are in admin/email config with crlf or only lf, the problem persists. When I've made a different machine in the network a smtp server (Mdaemon from Deerfield on a win9x :), everything started to work (the only modification was in php.ini, smtp = "mdaemon machine" instead of the provider's smtp server (linux based). Of course, I'm able to send e-mails from Outlook Express from the win2k/oscommerce machine directly to provider's server, so the php's email functions are guilty (php 4.3.1). On the other hand, on the same machine I have a phpBB based forum (www.phpbb.com) , with no trouble concerning e-mail (also php 4.3.1 based). This means that there are posibilities to send e-mails from php scripts without this stupid "451" error, so again a big request to THE TEAM to check how phpBB has done it ! (BTW, phpBB is somehow easier for novices, e-mail texts are in separate files, not in php files, so more customizable). Now, a possible solution: SMTP service in win2k ! Install/start it (Add new windows program/IIS services/Details), and configure it with "smart host" option to forward everything to provider (in programs/admin tools/iis manager). Also, in php.ini smtp=localhost. It works for me, but I'm sure it can be done without it, like in phpBB ! Thanks Nick Link to comment Share on other sites More sharing options...
nick61 Posted February 20, 2003 Share Posted February 20, 2003 Further observations: With output_buffering=4096 in php.ini, smtp="provider's linux qmail smtp server" and with no local smtp server, I receive the "success" page when creating accounts, but still no mail received at destination. If a TEAM MEMBER :wink: read last two posts in this topic PLEASE make some tests on a win2k machine and post an opinion about subject. There is any chance to send mail from osc on win2k like phpBB does? Thanks Nick Link to comment Share on other sites More sharing options...
RWHome Posted February 28, 2003 Share Posted February 28, 2003 Some peoples in this community wrote that setting "output_buffering = on" in file php.ini can help ..... not really .... i see no error message when i do this but mail will not be sent. I am running one of the last snapshots (feb 27) ... no whitepaces in files ... modified nothing with a windows editor ... mail settings are ok and in the admin area of OSC i can send mails but not from the catalog :( :( :( Config: Microsoft-IIS/5.1 PHP 4.3.1 P.S: only a problem when i send direct to my ISP mail server. Mail relay via internal SMTP Server of XP of via Company's SMTP Server is working! It is a problem of OSC! Link to comment Share on other sites More sharing options...
travisb Posted April 10, 2003 Share Posted April 10, 2003 I have the same problem with SMTP server response: 451. Anyone found a solution yet? Link to comment Share on other sites More sharing options...
travisb Posted April 10, 2003 Share Posted April 10, 2003 Update to previous post: When I try to add a new customer I get the SMTP server response: 451 error but the customer is actually created in the database. So I can go into the Admin tool and see the customer. I can then send an email to the customers address without any error. Can anyone help me? Thanks. Link to comment Share on other sites More sharing options...
Guest Posted April 11, 2003 Share Posted April 11, 2003 Hi, I thnik at the end of the day - you need to be hosting your website on some sort of windows server that comes with a built in (osCommerce compatiable) email sending program, if you are using your own pc for testing ie localhost, it wont work unless you install some sort of "smtp mail server" - there is not enough info about on what type you need, same goes for your webhosting. if someone is hosted osCommerce succesfully on "paid windows servers" could you PM me the URL for the host site? Cheers Link to comment Share on other sites More sharing options...
goXtreme Posted May 16, 2003 Share Posted May 16, 2003 I am fairly new to osCommerce, and haven't worked through enough of my windows issues to feel comfortable moving my customers to production, yet I feel I am very close on the functionality (still need to modify look/feel). I am in this thread because I received the same "SMTP server response: 451" error, but I received it from the admin/orders.php page when I updated the order status and left the box checked to notify the customer. If needed, I could do without this functionality, but it would be nice to actually be able to utilize all the power osCommerce offers. When placing a test order, qmail worked fine. When in the admin area, under tools > send email, it worked fine. I am still learning about where the other email areas are located. I tend to agree with previous posters that this seems to be an osc issue, rather than a qmail issue because all email seems to be sent through the same function: function send($to_name, $to_addr, $from_name, $from_addr, $subject = '', $headers = '') located in admin/includes/classes/email.php If anyone has suggestions for further testing to identify the issue or knows of a fix, I would greatly appreciate it. I am running: HTTP Server: Microsoft-IIS/5.0 PHP Version: 4.3.1 (Zend: 1.3.0) osc Version: ? Link to comment Share on other sites More sharing options...
Guest Posted May 17, 2003 Share Posted May 17, 2003 :arrow: Link to comment Share on other sites More sharing options...
Guest Posted May 17, 2003 Share Posted May 17, 2003 I got mine to work now OLD SETTING - NO WORK --------------------------------------------------- My SMTP Settings in "c:/winnt/php.ini" --------------------------------------------------- [mail function] ; For Win32 only. SMTP = mail.maxidvd.com ; for Win32 only ; For Win32 only. sendmail_from = [email protected] ; for Win32 only --------------------------------------------------- osCommerce Email Settings ( Admin) --------------------------------------------------- E-Mail Transport Method: smtp E-Mail Linefeeds: CRLF Use MIME HTML When Sending Emails: false Verify E-Mail Addresses Through DNS: false Send E-Mails: true NEW SETTINGS - DO WORK --------------------------------------------------- My SMTP Settings in "c:/winnt/php.ini" --------------------------------------------------- [mail function] ; For Win32 only. SMTP = maxidvd.com ; for Win32 only ; For Win32 only. sendmail_from = [email protected] ; for Win32 only --------------------------------------------------- osCommerce Email Settings ( Admin) --------------------------------------------------- E-Mail Transport Method: smtp E-Mail Linefeeds: CRLF Use MIME HTML When Sending Emails: false Verify E-Mail Addresses Through DNS: false Send E-Mails: true [mail function] ; For Win32 only. SMTP (I SCRAPPED THE mail.maxidvd.com and changed it to just the domain name - maxidvd.com anyway its utalising an EXTERNAL MAIL SERVER, as I could not get the windows one to function, I think the windows SMTP server is for incomming NETWORK EMAIL and not SENDING! dont quote me either. Just another thing I have tried two diffrent versions of PHP PHP 4.31 one you get from www.php.net which i used as a add-on to my IIS Windows 2000 Server, (this is the buggy one ie - header problems, email, Easy Populate wont upload, picture uploads dont work ect ect... I think its missing some something really crucial for full funcionality of oscommerce in a windows enviroment, PHPDEV 4.30 + Apache, MySQL, PhpMyAdmin - ect as a Modified Auto installable Full Version Stand along Server with the lot - separate from the Windows 2000 IIS Server (the two clash is running ah the same time) so IIS needs to be stopped - PHPDEV 4.30 will Override the windows server http://www.firepages.com.au/ - I really like this one - its also perfect for the Novice, only a few problems with it - I could not work out how to STOP the server other than -unistall or CTRL - ALT - DELETE - --> END TASK, also no WYSIWYG Admin control - same goes for MySQL - its all needs to be done by .HTACCESS <-- on the good side osCommerce ran great, email - Easypoulate uploads, image uploads ect. well.. Link to comment Share on other sites More sharing options...
Vinsar Posted May 18, 2003 Share Posted May 18, 2003 I don't know why people are having so much of problem here, tested osCommerce on my Win2k Machine, and itis running properly, without any problem, I would like to add that I am a total newpie to php and programming, but any how I did it, theconfigurations I have are E-Mail Transport Method smtp E-Mail Linefeeds LF Use MIME HTML When Sending Emails true Verify E-Mail Addresses Through DNS false Send E-Mails true I have Win2k running with ArgoSoft Mail server, running, As for php.ini, I am using smtp for mail but leave sendmail_from = "" ; for Win32 only I found this error some time back, that if sendmail_from is not blank then it makes problem (may be php it tries to send mail as defined in php.ini, but application tries as defined in application's settings.) I will again say I don't know much technicaly. Any question what are the settings, just tell me where should I look them and I will be abel to respond. ****************** Still Learning ****************** Link to comment Share on other sites More sharing options...
Guest Posted May 19, 2003 Share Posted May 19, 2003 Hi Vinsar, Can you tell me what version of PHP you are using? Where you downloaded it? and are you using it with the Windows Server, IIS or is it running as a Standalone php/apache server - different to that of the IIS that is on the Windows 2000 CD... does your webroot folders look like this: c:/inetpub/wwwroot/catalog or more like (example): c:/phpdev/www/catalog any help would be good... I just seems to me that my install is still missing something. Cheers Lee Link to comment Share on other sites More sharing options...
Vinsar Posted May 19, 2003 Share Posted May 19, 2003 php 4.2.2 from http://www.php.net (But wait) Win2k I use Foxserv from http://www.foxserv.net My Webroot Folder For OsCommerce is D:FoxServwwweStoreOstore So get Foxserv, its an Apache/php/mysql/perl/python etc installer This software is great if you want to develop Apache based technologies on Windows machine. ****************** Still Learning ****************** Link to comment Share on other sites More sharing options...
Guest Posted May 19, 2003 Share Posted May 19, 2003 Ok good, Ive started downloading (33MB) I will have a look at it, the problem is most people with troubles in this thread as running windows 2000 servers IIS, and installing PHP extensions, so its different than running a complete apache/php stand alone server such as the one you have, I also work with ASP (active server pages) so I dont really want to do away with Windows IIS server, and I believe that have two servers running on one PC is cause for concern as they often clash. If i could ture one server on while the other gets turned off via admin controls like the IIS (stop) and (go) that might be an idea. does anyone know of server that will run both PHP(osCommerce) and ASP other than windows IIS? Link to comment Share on other sites More sharing options...
Vinsar Posted May 19, 2003 Share Posted May 19, 2003 Web servers listen on port 80 You can tell Apache to listen on some different port "8080" is a good option, this way you will have both the servers running without any problem. So if you make Apache to listen ot port 8080, your site will be http://localhost:8080 to do this open httpd.conf and change the value. I have this file at D:FoxServApacheconf you can check it relative to your installation. Now open file httpd.conf and search for Listen 80 Change it to Listen 8080 save and restart Apache. ****************** Still Learning ****************** Link to comment Share on other sites More sharing options...
Guest Posted May 19, 2003 Share Posted May 19, 2003 Yeah right, I'll do that :o thanks Vinsar Link to comment Share on other sites More sharing options...
Guest Posted September 10, 2003 Share Posted September 10, 2003 For anyone still having osCommerce email/smtp issues, you need to install a SMTP Relay Server on you Windows PC, It works with-out a glitch, download this SMTP Relay Server, The software can be used a Shareware for Free, or you can Purchase a License for US$49, Why? I dont know yet but Im using it for free, no drama's or limitations either.. download size is small 2mb MAX!, simple install it, it runs a start-up in your system tray, records all outgoing email you send, and any errors. can also be used to send you Microsoft Outlook and/or Outlook Express emails, much quicker than you own ISP mail sending, the mail is sent direct to the reciepient rather then to you ISP 1st. http://www.getfreefile.com/localsrv.html anyway to make it work with osCommerce, install it, press OK - bypass registrations payment sign-ups ect.. dont tick any Microsoft Outlook and/or Outlook Express Options as it will automatically configure your email clients to use "itself" rather then your ISP, much quicker (only sends email ok, it does not recieve email). thats it with the install.. you then need to open your PHP.ini file in Windows. Can be found in C:/winnt/PHP.ini (Windows 2000/NT) or C:/Windows/PHP.ini (98/ME/XP) open that file with Notepad or other Text/PHP Editing software.. search or seek for this (aprox line 590) [mail function] ; For Win32 only. SMTP = ; for Win32 only ; For Win32 only. sendmail_from = ; for Win32 only and change it to: [mail function] ; For Win32 only. SMTP = localhost; for Win32 only ; For Win32 only. sendmail_from = you@youremail_address.com; for Win32 only use your return/recieving email in the above line, this will return error message emails to you if there are problems on the recipients end ect. Save that file (php.ini) and close it.. now go to your osCommerce Admin, "Configuration Options" -- "Email Options" and set up like so?: E-Mail Transport Method smtp E-Mail Linefeeds CRLF Use MIME HTML When Sending Emails false Verify E-Mail Addresses Through DNS false Send E-Mails true Thats it!!, OSCOMMERCE should function correctly now, no email smtp errors headers allready sent ect.. Cheers MaxiDVD Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.