smtp mail() problem to send from php
Posted: 22. May 2014 11:15
Hello, I use Xampp 1.6.6.a, I coded a script for my business to list parts and by one clic to send the list to a registered mail by the mail() function. My problem is that after clic I've got the message
( I've removed personal data and replaced them here by ME and them, but the message displays the right datas )
As I found on the web, OFR102 is my web provider called in France " Orange " but I put in php.ini the smtp from my webhoster OVH.
these are my following settings, confidential settings as the true user and password are replaced bye DELETED, the parameters that are not completed are so in the file.
sendmail.ini
php.ini
PHP5.INI
so the question is : what could be wrong ? why does xampp try to send by Orange while I told him to use OVH ? Thanks a lot to guys and girls ( are there some ? ) that will try to help me
Warning: mail() [function.mail]: SMTP server response: 550 5.1.0 Authentification requise. Authentication Required. OFR102_402 [402] in C:\xampp\htdocs\garage\retours_pieces\retours.php on line 183
Le message n'a pu être envoyéFrom: "ME" Reply-To: them username: ME Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: 8bit
( I've removed personal data and replaced them here by ME and them, but the message displays the right datas )
As I found on the web, OFR102 is my web provider called in France " Orange " but I put in php.ini the smtp from my webhoster OVH.
these are my following settings, confidential settings as the true user and password are replaced bye DELETED, the parameters that are not completed are so in the file.
sendmail.ini
;smtp_server=ns0.ovh.net
;smtp_port=5025
;smtp_user = DELETED
;smtp_password = DELETED
;auth_username=DELETED
;auth_password=DELETED
;pop3_server=
;pop3_username=
;pop3_password=
;force_sender=me@localhost
;hostname=localhost
php.ini
[mail function]
; For Win32 only.
;SMTP = ns0.ovh.net
;smtp_port = 5025
;smtp_user = DELETED
;smtp_password = DELETED
; For Win32 only.
;sendmail_from = DELETED
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path = "C:\xampp\sendmail\sendmail.exe -t"
; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =
PHP5.INI
[mail function]
; For Win32 only.
;SMTP = ns0.ovh.net
;smtp_port = 5025
;smtp_user = DELETED
;smtp_password = DELETED
; For Win32 only.
sendmail_from = DELETED
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path = "G:\xampp\sendmail\sendmail.exe -t"
; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =
so the question is : what could be wrong ? why does xampp try to send by Orange while I told him to use OVH ? Thanks a lot to guys and girls ( are there some ? ) that will try to help me