+ Reply to Thread
Results 1 to 2 of 2

Thread: How to send mail in PHP

  1. #1
    Junior Member
    Join Date
    Jan 2012
    Posts
    40

    How to send mail in PHP

    How can i send a mail using PHP ?
    Last edited by jacklin; 11-12-2012 at 03:35 AM.

  2. #2
    Junior Member
    Join Date
    Jun 2012
    Posts
    41
    Code:
    <?php
     $to = "recipient@example.com";
     $subject = "TEST";
     $body = "Hello ,did you receive my mail?";
     if (mail($to, $subject, $body)) {
       echo("<p>Mail successfully sent!</p>");
      } else {
       echo("<p>Mail delivery failed...</p>");
      }
     ?>

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts