SMTP = smtp.gmail.com
smtp_port = 465
smtp_ssl=auto
Izbacuje mi sledecu gresku:
Failed to connect to mailserver at "smtp.gmail.com" port 465, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()
$name = $_POST['name'];
$email = $_POST['email'];
$feedback = $_POST['feedback'];
$toaddress = "[email protected]";
$subject = "Feedback from web site";
$mailContent = "Customer name: " . $name . "\n" .
"Customer email: " . $email . "\n" .
"Customer comments:\n" . $feedback . "/n";
$fromAddress = "From: [email protected]";
mail($toaddress, $subject, $mailContent, $fromAddress);
PS
Skriptu pustam na localhost-u