Does Xampp have a mail function using php? -
this question has answer here:
- how configure xampp send mail localhost? 9 answers
i wondering whether possible use mail() functions in php app running apache xampp.
thanks
ya. possible.
if sending mail through local server need configure
c:\xampp\sendmail\sendmail.ini
(send gmail) , c:\xampp\php\php.ini
.
in php.ini
find extension=php_openssl.dll
, remove semicolon beginning of line. allow send mail localhost.
and find mail function
, change below settings
smtp=smtp.gmail.com smtp_port=587 sendmail_from = my-gmail-id@gmail.com sendmail_path = "\"c:\xampp\sendmail\sendmail.exe\" -t"
in sendmail.ini(path - c:\xampp\sendmail\sendmail.ini
)
change this
[sendmail] smtp_server=smtp.gmail.com smtp_port=587 error_logfile=error.log debug_logfile=debug.log auth_username=gmail id@gmail.com//your gmail id auth_password=gmail password // gmail password force_sender=gmail id@gmail.com //your gmail id
change gmail id@gmail.com, gmail password, gmail id@gmail.com in above code.
finally
comment following line if there sendmail_path : sendmail_path="c:\xampp\mailtodisk\mailtodisk.exe"
in php.ini file.
Comments
Post a Comment