Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

test order ERROR


jennki

Recommended Posts

Posted

Hi, I'm now using xampp as localhost server with Mercury smtp mail server, I'm now testing on placing order in the oscommerce. I've set up a new account as a new customer and add some products in the cart, I filled up the details in the ordering process, I use my real personal email address ([email protected]) in the ordering process. By using mercury mail server, the localhost email is postmaster@localhost. At the end of the ordering process, there is an ERROR message as below listed:

 

Warning: 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:\Program Files\xampp\htdocs\catalog\includes\classes\email.php on line 500

 

Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\xampp\htdocs\catalog\includes\classes\email.php:500) in C:\Program Files\xampp\htdocs\catalog\includes\functions\general.php on line 29

 

Under C:\Program Files\xampp\htdocs\catalog\includes\classes\email.php on line 500 is as below:

 

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));

Under C:\Program Files\xampp\htdocs\catalog\includes\functions\general.php on line 29 is as below:

header('Location: ' . $url);

 

Could anyone tell me what should I do in order to have successful test order to be emailed/noticified to me?

Posted

Or Do I have to post it to a real server to test the order procedure and what I want to see is to have the customer order ( a test order) to be send back to my email addresss provide.

 

Anyone know how to set it up?

  • 2 weeks later...
Posted
Hi, I'm now using xampp as localhost server with Mercury smtp mail server, I'm now testing on placing order in the oscommerce. I've set up a new account as a new customer and add some products in the cart, I filled up the details in the ordering process, I use my real personal email address ([email protected]) in the ordering process. By using mercury mail server, the localhost email is postmaster@localhost. At the end of the ordering process, there is an ERROR message as below listed:

 

Warning: 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:\Program Files\xampp\htdocs\catalog\includes\classes\email.php on line 500

 

Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\xampp\htdocs\catalog\includes\classes\email.php:500) in C:\Program Files\xampp\htdocs\catalog\includes\functions\general.php on line 29

 

Under C:\Program Files\xampp\htdocs\catalog\includes\classes\email.php on line 500 is as below:

 

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));

Under C:\Program Files\xampp\htdocs\catalog\includes\functions\general.php on line 29 is as below:

header('Location: ' . $url);

 

 

Could anyone tell me what should I do in order to have successful test order to be emailed/noticified to me?

 

 

 

 

I have have taken Vger's advice and installed XAMPP to run the development system (Win XP OS)

 

Unfortunaltey I get the same error as above when trying to send mails

 

I have configured OSC, I have even gone down into PHP4.ini and tryed to configure the SMTP = "with a redirect to an external relay"

 

I then get "we do not relay non local mail"

 

Previous to using XAMPP I did a manual install that worked fine using the above

 

Can anybody give us some guidance please?

 

Thank you

 

Nossum

Posted
Hi, I'm now using xampp as localhost server with Mercury smtp mail server, I'm now testing on placing order in the oscommerce. I've set up a new account as a new customer and add some products in the cart, I filled up the details in the ordering process, I use my real personal email address ([email protected]) in the ordering process. By using mercury mail server, the localhost email is postmaster@localhost. At the end of the ordering process, there is an ERROR message as below listed:

 

Warning: 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:\Program Files\xampp\htdocs\catalog\includes\classes\email.php on line 500

 

Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\xampp\htdocs\catalog\includes\classes\email.php:500) in C:\Program Files\xampp\htdocs\catalog\includes\functions\general.php on line 29

 

Under C:\Program Files\xampp\htdocs\catalog\includes\classes\email.php on line 500 is as below:

 

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));

Under C:\Program Files\xampp\htdocs\catalog\includes\functions\general.php on line 29 is as below:

header('Location: ' . $url);

 

Could anyone tell me what should I do in order to have successful test order to be emailed/noticified to me?

 

Jennki

 

I have done a lot of wandering around the XAMPP site and find local email a problem

 

I quote one solution which has worked for me

 

PHP's normal method of sending email is through Sendmail, which is a *nix program that isn't part of the normal Windows system. The Windows version of Sendmail will send out through a standard email server, if it's set to.

 

If you check in the xampp folder, you'll find a folder called apache, and one in that called bin. That seems to be the default install location for php.ini, which has your PHP settings. In php.ini, you'll find, somewhere in the middle, the following section:

 

[mail function]

; For Win32 only.

SMTP = localhost

 

; For Win32 only.

sendmail_from = postmaster@localhost

 

If your ISP allows you to send email through their server without any kind of user name or password, you can change "localhost" to their smtp server (eg relay.blogmail.net), and the sendmail_from to whatever address you want that email to be from.

 

You can find the smtp setting from your email account set up

 

Mercury seems a very fine piece of work but for a development envioronment the above seems to work fine

 

Hope this helps

 

Regards

 

Nossum : blink - thumbs up

  • 2 months later...
Posted
Jennki

 

I have done a lot of wandering around the XAMPP site and find local email a problem

 

I quote one solution which has worked for me

 

 

 

You can find the smtp setting from your email account set up

 

Mercury seems a very fine piece of work but for a development envioronment the above seems to work fine

 

Hope this helps

 

Regards

 

Nossum : blink - thumbs up

 

well didnt work for me

 

after modifying the lines to:

 

[mail function]

; For Win32 only.

SMTP = mailgw.netvision.net.il

smtp_port = 25

 

; For Win32 only.

;sendmail_from = [email protected]

 

server response was:

 

Warning: mail() [function.mail]: SMTP server response: 550 5.1.8 invalid/host-not-in-DNS return address not allowed in C:\Program Files\xampp\htdocs\catalog\includes\classes\email.php on line 522

 

Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\xampp\htdocs\catalog\includes\classes\email.php:522) in C:\Program Files\xampp\htdocs\catalog\includes\functions\general.php on line 33

 

any ideas?

 

 

 

:o

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...