1:
mail -a "Content-Type: text/html" -s test123 marcus@uncompiled.de < index.html
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11:
$message = "<h1>Hello world!<h1>"; $to = "empfaenger@system.de"; $subject = "Betrefftext"; $xtra = "From: ab@sender.de (Ab Sender) "; $xtra .= "Content-Type: text/html Content-Transfer-Encoding: 8bit "; $xtra .= "X-Mailer: PHP ". phpversion(); mail($to,$subject,$message,$xtra);
uuencode index.html < index.html |mail -s "Test" marcus@uncompiled.de
mail -s "test" marcus@uncompiled.de < index.html