Deru Knowledgebase
Search:     Advanced search
Browse by category:
Contact Us

Send Mail Using PHP

Add comment
Views: 1101
Votes: 0
Comments: 0
Posted: 04 Feb, 2008
by:
Updated: 03 Aug, 2012
by:
Test Script For Sending mail Using PHP mail function.

<?php
$to = "recipient@yourdomain.com";
$subject = "Subject of mail";
$body = "Body of mail ";
if (mail($to, $subject, $body)) {
echo("<p>mail have been sent</p>");
} else {
echo("<p>An error Occured</p>");
}
?>
Others in this Category
document CGI sample script using perl
document Sending mail using CDOSYS
document Test Script for ASP-MSSQL connection
document Send authenticated mail using asp.net ( System.Web.Mail )
document Send mail using Perl
document Cron job to take database backup



RSS