As of right now, I eliminated the SMTP configuration at the gallery.
Now the gallery is sending mail based on my php.ini file. (Which uses SMTP server)
I get the following error:
Warning: mail(); SMTP server response: 501 syntax: Recipient can not contain space .............C:\Apach\.......\email.php on line 171.
Note: I had the exact same error with Os-commerce and the solution was:
From Similar file
FROM:
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));
TO:
return mail($to_addr, $subject, $this->output, 'From: ' . $from_addr . $this->lf . 'From: ' . $from . $this->lf . 'To: ' . $to . $this->lf . implode($this->lf, $this->headers) . $this->lf . implode($this->lf, $xtra_headers));
Essentially sending two FROM headers - the first one being compatible with MS mail servers, and the second being read by the email clients for display.
This is a bug in OSCommerce that really should be resolved.
Please look where the solution came above.
Any ideas please: looks to be easy, I think is a simple syntax error; unfortunately I am no php expert!!.
Regards.