HOW TO SEND DATA ON MAIL USE PHP

Please log in or register to like posts.
 

                  HOW TO SEND DATA ON MAIL USE PHP

      $message = ‘<html><body>’;
      $message .= ‘<table rules=”all” style=”border-color: #666;” cellpadding=”10″>’;
   
      $message .= “<tr><td><strong>Name:</strong> </td><td>” . strip_tags($clname) . “</td></tr>”;
      $message .= “<tr><td><strong>Email:</strong> </td><td>” . strip_tags($clemail) . “</td></tr>”;

      $message .= “<tr><td><strong>Country:</strong> </td><td>” . $clcountry . “</td></tr>”;
      $message .= “<tr><td><strong>Telephone Number:</strong> </td><td>” . $clphone . “</td></tr>”;

      $message .= “<tr><td><strong>Date of Arrival:</strong> </td><td>” . $remark . “</td></tr>”;;

      $message .= “</table>”;
      $message .= “<br>”;
      $message .= “Reference: $reference”;
      $message .= “</body></html>”;

      $headers = “From: ” . $clemail . “rn”;
      $headers .= “Reply-To: “. strip_tags($clemail) . “rn”;
      $headers .= “MIME-Version: 1.0rn”;
      $headers .= “Content-Type: text/html; charset=ISO-8859-1rn”;
      $subject = ‘info@PIYUSH.com’;
mail($tomail, $subject, $message, $headers);

Reactions

0
0
0
0
0
0
Already reacted for this post.

Reactions

Leave a Reply

Your email address will not be published. Required fields are marked *