I have the following code which sets up the SMTP server:
ini_set("send_from", "test@gmail.com");
ini_set("SMTP", "smtp.gmail.com");
and i create a simple mail in this way:
mail("test@yahoo.com", "A subject", "My message for you", "From: TEST");
When I run this code, it fails to send mail to Yahoo e.g. some.email@yahoo.com. But when i use any Gmail mail address as the first argument, it works.
What's wrong ?