These are the steps in registering a new user.
1. A new user is registered (provide name, address, email etc.)
2. An email is sent to the email he/she provided, which contains his login information.
the problem now is the emial code. I've never done this before so I don't know how this works. I tried searching for help, and the acronym SMTP always pops up. and I don't know how that works either. I know I have to configure php.ini to be able to do this, but I don't know what to change.
here's a sample code i got from the net. I'm trying to make this work first.
<?php
$email_to = "my_email@yahoo.com";
$email_subject = "Test E-Mail (This is the subject of the E-Mail)";
$email_body = "This is the body of the Email \nThis is a second line in the body!";
if(mail($email_to, $email_subject, $email_body)){
echo "The email($email_subject) was successfully sent.";
} else {
echo "The email($email_subject) was NOT sent.";
}
?>
Please Help me.