Switch to full style
Dynamic open source server-side web development
Post a reply

Send Email from a PHP Script Example

Mon Jul 13, 2009 10:43 am

Hi,
The first argument to this function is the recipient, the second specifies the message's subject and the third one should contain the body. So to send a simple sample message, we could use:

<?php
$to = "[email protected]";
$subject = "Hi!";
$body = "Hi,\n\nHow are you?";
if (mail($to, $subject, $body)) {
echo("<p>Message successfully sent!</p>");
} else {
echo("<p>Message delivery failed...</p>");
}
?>



Post a reply
  Related Posts  to : Send Email from a PHP Script Example
 Send an email in asp.net     -  
 Send email in asp     -  
 Send email link example.     -  
 send email from ASP using CDOSYS     -  
 send confirmation link to email     -  
 i want to send conformation email with user details on the     -  
 Send Email Recipient CC,BCC MimeMultipart, Attachments     -  
 Can anyone suggest some script?     -  
 need help with java script in a pdf     -