- Code: Select all
// The message
$message = "Line 1\nLine 2\nLine 3";
// In case any of our lines are larger than 70 characters, we should use wordwrap()
$message = wordwrap($message, 70);
if(mail('firstname.lastname@example.org', 'My Subject', $message)) //I replace xxx with my email
It gave me the Sucsess but no email come to my gmail inbox. How can I make it goes into my inbox?
Anyway, in XAMPP Page, it says that SMTP is working.
PS. Sorry for bad English.
PS2. The code is from http://php.net/manual/en/function.mail.php