In VB.net this works:
client.Host = "smtp.gMAIL.com"
client.Credentials = New System.Net.NetworkCredential("b040Mail2@gmail.com", "*****")
client.Port = 587
client.EnableSsl = True
I'm trying this in php (from Xampp) but it gives me an error:
ini_set("SMTP","ssl://smtp.gmail.com");
ini_set("smtp_port","587");
ini_set("username","b040Mail2@gmail.com");
ini_set("password","*****");
$to = "p806Antwerp@gmail.com";
$subject = "testing";
$message = "This is the message";
mail($to,$subject,$message).
Is there anything here I should do, that I'm not doing?
Thank you very much for your help.
Kind regards,