Mail function can be used in several ways, eg a contact form and auto-senders suitable for confirming registration.
Ok the function is used like this:
mail($to, $subject, $message, $headers);
Although its preferred to use variables because its easier to use and modify later.
To make sure the message was sent correctly you can use the following "if block"
if(mail($to,$subject,$message,$headers)){
echo "Email Sent";
}else{
echo "Email Sending Failed";
}
hope this is helpful and makes the mail() function clear and easier to use.
Thursday, September 10, 2009
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment