I've been trying to send an email using XAMPP but it doesn't seem to work. I've watched tutorials on how to do it, but in the end it still fails. I'm using Windows 8.
These are the files that I 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 this if you want to work with an SMTP Server like 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"