php - Using XAMPP to send mail -


i've been trying send email using xampp doesn't seem work. i've watched tutorials on how it, in end still fails. i'm using windows 8.

these files changed.

php.ini

<?php  $send = mail(     "childrenbirthdayparty@gmail.com",     "hello!",     "hello",     "from:childrenbirthdayparty@gmail.com" );  if ($send) {     echo "yes"; } else {     echo "no"; }  ?> 

sendmail.ini

smtp_server = smtp.gmail.com smtp_port = 465 smtp_ssl = ssl error_logfile = error.log debug_logfile = debug.log auth_username = childrenbirthdayparty@gmail.com auth_password = password(not real password) force_sender = childrenbirthdayparty@gmail.com hostname = smtp.gmail.com 

mail.php

[mail function] ; xampp: comment out if want work smtp server mercury smtp = smtp.gmail.com smtp_port = 465 sendmail_path = "\"c:\xampp\sendmail\sendmail.exe\" -t" mail.add_x_header=off mail.log = "c:\xampp\php\logs\php_mail.log" 

to windows8

after change file

1-php.ini

2-sendmail.ini

go c:\xampp\sendmail

1) right click sendmail.exe , go properties.

2) click compatibility tab click change settings users.

3) set compatibility mode windows xp (service pack 3)

4) click check box run progrma administrator

hope helps else.

its working my


Comments

Popular posts from this blog

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -