Page 1 of 1

[SOLVED]eternal SENDMAIL problem

PostPosted: 23. July 2012 15:51
by stefanocps
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
auth on
password mypassword
port 587
account default : Gmail

php.ini ( i have modified and uncommented some lines):
[mail function]
; For Win32 only.
smtp_port = 587

; For Win32 only.
sendmail_from =

; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
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!

Re: eternal SENDMAIL problem

PostPosted: 23. July 2012 16:19
by stefanocps
i have run a script to test

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

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!