# iptables -I INPUT -p tcp --dport 32 -j ACCEPT
To open a range of ports
iptables -A INPUT -p tcp --destination-port 6881:6999 -j ACCEPT
iptables -A OUTPUT -p tcp --source-port 6881:6999 -j ACCEPT
ABHIONLINUX
Site useful for linux administration and web hosting
2009/11/14
2009/11/12
phpmail()
$to = "test@test.com";
$from = "stest@test.com";
$sub = "Test Email";
$msg = "Please ignore this";
mail($to, $sub, $msg, "From: $from");
php
$to = "test@test.com";
$subject = "test mail from support";
$body = "Please ignroe this mail";
if (mail($to, $subject, $body)) {
echo("
} else {
echo("
}
$from = "stest@test.com";
$sub = "Test Email";
$msg = "Please ignore this";
mail($to, $sub, $msg, "From: $from");
php
$to = "test@test.com";
$subject = "test mail from support";
$body = "Please ignroe this mail";
if (mail($to, $subject, $body)) {
echo("
Message successfully sent!
} else {
echo("
Message delivery failed...
");}
Subscribe to:
Posts (Atom)