- Apache (9)
- DNS / BIND (2)
- General Linux (7)
- Mail (8)
- Postfix (1)
- Qmail (4)
- Sendmail (3)
- MySQL (7)
- News (1)
- Other (2)
- Perl (1)
- PHP (5)
- Plesk (13)
- Redhat Linux (8)
- Ruby (1)
- Scripts (4)
- Security (4)
- iptables (2)
TopicNavigationUser login |
Testing PHP mailHere is a script you can use to verify php mail is functioning... you need to change the to and from address variables appropriately. <?php $to_address="your@email.com"; $from_address="user@server.com"; $body="Test message"; $headers = "From: $from_address \r\n"; $headers.= "Content-Type: text/plain; charset=ISO-8859-1 "; $headers .= "MIME-Version: 1.0 "; mail("$to_address", "PHP Mail works", $body, $headers); ?> |
Linux JournalSlashdot |