mail() function
Posted: 22. February 2013 14:43
Hello, i have to make a account verification php script for a school project and the ideea is that i can't get the mail. This is my php script:
I read some posts that i need to configure something is php.ini, I tried some of the methods but it didn't work. I am using XAMPP v.1.8.1.
I want to use the mail with localhost if it's possible because i won't be able to install aditional programs.
Need help. Thanks!
- Code: Select all
$mess="Your account have been registered. To activate click <a href='localhost/atestat3/activ.php?x=" . $rand . "'>here</a>.";
$mess=wordwrap($mess, 70, "\r\n");
mail($_POST['email'], 'Activation', $mess);
I read some posts that i need to configure something is php.ini, I tried some of the methods but it didn't work. I am using XAMPP v.1.8.1.
I want to use the mail with localhost if it's possible because i won't be able to install aditional programs.
Need help. Thanks!