glitter Posted September 18, 2002 Share Posted September 18, 2002 Upon completing registration, I am receiving the following error Warning: Server Error in C:hshomesamanthatouchofglitter.cacatalogincludesclassesemail.php on line 456 Warning: Cannot add header information - headers already sent by (output started at C:hshomesamanthatouchofglitter.cacatalogincludesclassesemail.php:456) in C:hshomesamanthatouchofglitter.cacatalogincludesfunctionsgeneral.php on line 23 Could someone please point in the right direction to correcting this, thanks. :roll: www.touchofglitter.ca Link to comment Share on other sites More sharing options...
PoDiCs Posted September 18, 2002 Share Posted September 18, 2002 It has to do with the mail configuration but not in osc! Maybe with the php.ini I'm not sure because I have the same problem ! Not only in the registration section but whenever it has to send an email. And if U don't know it, U take an error but the registration procces works and the member does signed-up! If U find out where the error is just let me know 2 Link to comment Share on other sites More sharing options...
edschaum Posted September 18, 2002 Share Posted September 18, 2002 Same problem here! I just signed up with a host that provides this system already set up, and the exact same problem happens to me. To check if there was a problem with the way it was set up, I dl'ed the latest version and installed it on another site. Same problem there too! Both setups are nt-hosted, and I didn't do any customization. Any help would be appreciated. Ed Link to comment Share on other sites More sharing options...
Mark Evans Posted September 18, 2002 Share Posted September 18, 2002 Any help would be appreciated. Open up the admin tool and click on configuration. Then click on email options and make cure you have the following set E-Mail Transport Method SMTP E-Mail Linefeeds CRLF Mark Evans osCommerce Monkey & Lead Guitarist for "Sparky + the Monkeys" (Album on sale in all good record shops) --------------------------------------- Software is like sex: It's better when it's free. (Linus Torvalds) Link to comment Share on other sites More sharing options...
edschaum Posted September 18, 2002 Share Posted September 18, 2002 E-Mail Transport Method SMTP E-Mail Linefeeds CRLF YES! That fixed it. Many thanks, Ed Link to comment Share on other sites More sharing options...
glitter Posted September 18, 2002 Author Share Posted September 18, 2002 It didn't help me, I am still receiving the same message, and a similar on on checkout, any other ideas? :?: www.touchofglitter.ca Link to comment Share on other sites More sharing options...
edschaum Posted September 18, 2002 Share Posted September 18, 2002 I guess I spoke too soon, because although it solved the first error, next time a user signs up, they get a similar error, except this time it points to line 500 instead of 465 (paths deleted): Warning: Server Error in ...catalogincludesclassesemail.php on line 500 Warning: Cannot add header information - headers already sent by (output started at ...catalogincludesclassesemail.php:500) in ...catalogincludesfunctionsgeneral.php on line 23 Link to comment Share on other sites More sharing options...
glitter Posted September 19, 2002 Author Share Posted September 19, 2002 :bigups: You put me on the right tracks. I just turned send email to false. I'm not about to mess with anything I don't know :wow: I'll just have to send the emails manually, until I can figure how to turn it back on without errors. www.touchofglitter.ca Link to comment Share on other sites More sharing options...
Guest Posted September 19, 2002 Share Posted September 19, 2002 Is everyone here having that same problem using win2k or NT? Thats the platform I'm using right now and I'm getting the exact same errors Ryan Link to comment Share on other sites More sharing options...
glitter Posted September 19, 2002 Author Share Posted September 19, 2002 Yes, that is indeed the platform, I'm running on :cry: www.touchofglitter.ca Link to comment Share on other sites More sharing options...
Harald Ponce de Leon Posted September 19, 2002 Share Posted September 19, 2002 An SMTP server needs to be added in the php.ini configuration file. After adding it, don't forget to restart the webserver so it can read the new parameter value. Windows servers need to have a specified SMTP server. A solution will be implemented later to enter the SMTP server information in the Administration Tool. , osCommerce Link to comment Share on other sites More sharing options...
PoDiCs Posted September 19, 2002 Share Posted September 19, 2002 I'm on winxp prof,iis 5,php 4.****and i have the problem 2 Link to comment Share on other sites More sharing options...
PoDiCs Posted September 19, 2002 Share Posted September 19, 2002 hpdl , I have add the mail server to the php.ini but this is not the solution. it must be something else! Link to comment Share on other sites More sharing options...
Harald Ponce de Leon Posted September 19, 2002 Share Posted September 19, 2002 I have add the mail server to the php.ini but this is not the solution. it must be something else! Well, a simple test can be done to see if it is a php problem or an osCommerce problem :) Try the following script: <?php mail('[email protected]', 'This is my subject', 'This is a test email', 'From: [email protected]'); ?> Does the error still occur with that logic? , osCommerce Link to comment Share on other sites More sharing options...
Gordonz Posted September 21, 2002 Share Posted September 21, 2002 Hi Same here I am getting the errors whenever it has to send a e-mail. I am at the stage of developing it on Apache on my local machine running Windows XP. Should the e-mail function still work or do I have to wait until I have ulploaded it my webhost? Link to comment Share on other sites More sharing options...
Gordonz Posted September 21, 2002 Share Posted September 21, 2002 sorry I didnt se the last post before I replied the script below worked fine, I guess that means the problem is with OSC <?php mail('[email protected]', 'This is my subject', 'This is a test email', 'From: [email protected]'); ?> Link to comment Share on other sites More sharing options...
PoDiCs Posted September 21, 2002 Share Posted September 21, 2002 hpdl,I tryied the code U gave me and I take the following error Warning: Failed to Receive in f:inetpubwwwrootphptestmail.php on line 2 So it is not the osc,but my php configuration! :( Link to comment Share on other sites More sharing options...
Harald Ponce de Leon Posted September 21, 2002 Share Posted September 21, 2002 So it is not the osc,but my php configuration! :( Can you post your mail parameters in php.ini so we can suggest possible solutions. [please just the mail parts, not the whole php.ini - I think there is 2 or 3 mail parameters] , osCommerce Link to comment Share on other sites More sharing options...
Harald Ponce de Leon Posted September 21, 2002 Share Posted September 21, 2002 sorry I didnt se the last post before I repliedthe script below worked fine, I guess that means the problem is with OSC Did you try this solution? , osCommerce Link to comment Share on other sites More sharing options...
Gordonz Posted September 21, 2002 Share Posted September 21, 2002 Yes I have my settings to:- E-Mail Transport Method smtp E-Mail Linefeeds CRLF Use MIME HTML When Sending Emails false Verfiy E-Mail Addresses Through DNS false With the code you sent it starts up my mail editor fine but from OSC I get the error message:- Warning: Failed to Connect in C:Program FilesApache GroupApache2htdocscatalogincludesclassesemail.php on line 500 Warning: Cannot add header information - headers already sent by (output started at C:Program FilesApache GroupApache2htdocscatalogincludesclassesemail.php:500) in C:Program FilesApache GroupApache2htdocscatalogincludesfunctionsgeneral.php on line 23 lines 499 onward reads:- if (EMAIL_TRANSPORT == 'smtp') { return mail($to_addr, $subject, $this->output, 'From: ' . $from . $this->lf . 'To: ' . $to . $this->lf . implode($this->lf, $this->headers) . $this->lf . implode($this->lf, $xtra_headers)); } else { return mail($to, $subject, $this->output, 'From: '.$from.$this->lf.implode($this->lf, $this->headers).$this->lf.implode($this->lf, $xtra_headers)); } } and I am using:- tep_snapshot-20020831 Link to comment Share on other sites More sharing options...
glitter Posted September 22, 2002 Author Share Posted September 22, 2002 <?php mail('[email protected]', 'This is my subject', 'This is a test email', 'From: [email protected]'); ?> Where would I insert the above line? :?: www.touchofglitter.ca Link to comment Share on other sites More sharing options...
Gordonz Posted September 22, 2002 Share Posted September 22, 2002 Paste it into your editor, save it with a .php extension under htdocs or wherever your oscom files are, then open it in your browser, click on the link and your mail editior should open BINGO Link to comment Share on other sites More sharing options...
Guest Posted September 22, 2002 Share Posted September 22, 2002 Ok try Searching for the following under your PHP.INI file, which of course has to be under your SYSTEM (Windows) directory... [mail function] When you find that it may read something like this [mail function] ; For Win32 only. ;SMTP = localhost ; For Win32 only. ;sendmail_from = [email protected] As you can see, options for SMTP are "commented out" so PHP is ignoring them (comented out commands/options are indicated with ;)... Ok now.. if it shows with a semi-colon in front, remove it.. specify the SMTP server, uncomment the sendmail_from to reflect the email you want.. and it should work.. if everything fails.. go to download.com and download SendMail for Windows... and just use sendmail instead of SMTP.. Hey I know it is NOT a "SOLUTION" but sure is a nice "work-around-the-Problem" solution :? (confused at even my own sentences right now.. but it is 4:38 AM sooo)... Hope this helps you Link to comment Share on other sites More sharing options...
Gordonz Posted September 22, 2002 Share Posted September 22, 2002 Ok try Searching for the following under your PHP.INI file, which of course has to be under your SYSTEM (Windows) directory... This I assume is if the php test <?php mail('[email protected]', 'This is my subject', 'This is a test email', 'From: [email protected]'); ?> dosn't work?Does any one have a solution if the above test does work but the e-mail dosn't work in osc? Link to comment Share on other sites More sharing options...
Gordonz Posted September 27, 2002 Share Posted September 27, 2002 Did any of the people that had these error messages (and whose php test mail script worked) get the osc mail function to work? If so could you let me know as I am still having the problem and I do not know much php to sort it out Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.