Why this method don't send me email?
hi guys
do you spot the not?
Code:
//email user
function emailUserPass() {
$user = $this->userName;
$pass = $this->passWord;
$to = $this->email;
$subject = 'Your username and password from onstaged.com';
$message = 'Hello this is from onstaged.com\n\n';
$message .= 'username: '. $user;
$message .= '\npassword: '. $pass;
$message .= '\n\n';
$message .= 'Thank you!';
$headers = 'From: onstaged' . "\r\n" .
'Reply-To: support' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);
}
I don't understand why this method in my class don't send email message to me?
thank you in advance.