I use XAMPP and I've set my configuration based on this answer. Also here is my script:
$msg = "First line of text\nSecond line of text";
$msg = wordwrap($msg,70);
mail("someone@example.com@gmail.com","My subject",$msg);
When I execute it, the result is a blank page without any error. But I don't see any new email in that gmail's inbox. What's wrong and how can I find the problem?
Notes:
- I tested that by multiple different gmail accounts.
- I've set
error_reporting(E_ALL);
in my script to see any error. (which there isn't any one) - I'm from Iran (I'm not sure it is important)
- I've tested
SMTP port
, and the port numbers are the same