[SOLVED]eternal SENDMAIL problem

Problems with the Windows version of XAMPP, questions, comments, and anything related.

[SOLVED]eternal SENDMAIL problem

Postby stefanocps » 23. July 2012 15:51

i use since years xampp and now and then i have tried to setup the sendmail (i need to test some things with my local wordpress installation)
every time i tried several code i found on internet bu t i never can get to make it work
none at all iuse gmail account and set the configuration i have found on several site (windows xp and xampp 1.7)
here is

logfile "C:\xampp\sendmail\sendmail.log"
account Gmail
tls on
tls_certcheck off
host smtp.gmail.com
from name.surname@gmail.com
auth on
user name.surname@gmail.com
password mypassword
port 587
account default : Gmail

php.ini ( i have modified and uncommented some lines):
[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = smtp.gmail.com
; http://php.net/smtp-port
smtp_port = 587

; For Win32 only.
; http://php.net/sendmail-from
sendmail_from = name.surname@gmail.com

; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
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 =

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

; Log all mail() calls including the full path of the script, line #, to address and headers
;mail.log = "C:\xampp\php\logs\php_mail.log"

FILL THE FILED OF THE NEW sendamil.ini file
php.ini ok like it was
it works!
Last edited by stefanocps on 23. July 2012 16:49, edited 2 times in total.
Posts: 2
Joined: 23. July 2012 15:41
Operating System: windows xp

Re: eternal SENDMAIL problem

Postby stefanocps » 23. July 2012 16:19

i have run a script to test

$from_name = "testmail";
$from_email = "name.surname@gmail.com";
$headers = "From: $from_name <$from_email>";
$body = "Hi, \nThis is a test mail from $from_name <$from_email>.";
$subject = "Test mail from Justrealized";
$to = "name.surname@gmail.com";

if (mail($to, $subject, $body, $headers)) {
echo "successo executed!";
} else {
echo "fail…";

and it seems to succed
but no email arrive and no log written in the sendamil.log

going insane!
Posts: 2
Joined: 23. July 2012 15:41
Operating System: windows xp

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 105 guests