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