Why does mail work return false?

0

perform the php ini and smtp settings but still the mail function Below example

mail('[email protected]','hola','holaquehace')

return me false try with Below example

mail('[email protected]','hola','hhoajljla\r\n')

and the same this is my php.ini

[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = smtp.gmail.com
; http://php.net/smtp-port
smtp_port = 465

; For Win32 only.
; http://php.net/sendmail-from
;sendmail_from = [email protected]

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-pathabajovacia
sendmail_path =C:\Bitnami\wampstack-7.1.17-0\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().
;mail.force_extra_parameters =

; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
mail.add_x_header = Off

; The path to a log file that will log all mail() calls. Log entries include
; the full path of the script, line number, To address and headers.
;mail.log =
; Log mail to syslog (Event Log on Windows).
;mail.log = syslog

I get the following error Socket Error # 11001Host not found.

    
asked by Israel David Villarroel Moreno 17.09.2018 в 01:22
source

0 answers