All pastes #763167 Raw Edit

Untitled

public text v1 · immutable
·published 2007-11-06 06:45 UTC
rendered paste body
<?php
$to_email = "testemail@yahoo.com";
$from_email = "test@mydomain.com";
$subject = "E-Mail Validation";
$contents = "This is a test!!!
\n
\n
\n
\n
ehwoa
\n
\n this is
\n\n\n
";
$header = 'MIME-Version: 1.0' . "\r\n";
        $header .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
        $header .= "From: $from_email\r\n";

if(mail($to_email, $subject, $contents, $headers))
{
echo "This boolean succeded! - sent to: $to_email";
}
else
{
echo "This boolean failed!";
}
?>