sorry but i'm new to php scripting, but i can't seem to get mail() to work. Here's my index.php... replace TO EMAIL and FROM EMAIL with any valid email (i use my x10 acct for "from" and gmail acct for "to" but i also tried sending just to my x10 acct)... anyway thanks in advance.
Code:<html> <body> <?php // mail example (doesn't work - no mail server???) $to = "TO EMAIL"; $subject = "Test Mail"; $message = "Hello! This is a simple test email!"; $from = "FROM EMAIL"; $headers = "From: " . $from; if(!mail($to, $subject, $message, $headers)) echo "mail error<br/>"; else echo "mail sent<br/>"; ?> </body> </html>


2Likes
LinkBack URL
About LinkBacks
Reply With Quote


