PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Normally you will have no smtp server pre-installed on your localhost, so your php mail functions won't execute. Try running them on a server that support php mailing.
Fot the mail settings, you may want to take a look at your php.ini file. If you can't access it (for example on a share hosting) try using ini_set().
<?php
require_once("htmlMimeMail5/htmlMimeMail5.php");
// Instantiate a new HTML Mime Mail object
$mail = new htmlMimeMail5();
// Set the sender address
$mail->setFrom("jason@example.com");//$from field
// Set the reply-to address
$mail->setReturnPath("jason@example.com");
// Set the mail subject
$mail->setSubject("Test HTML Mime Mail");
// Set the mail body text
$mail->setText("This is the body of the test email.");
// Send the email!
$mail->send(array("support@example.com"));//$to field
?>