Php Mail Example

Source URL: https://blog.mailtrap.io/php-email-sending/

Language: php

Created on: 2020-10-22 01:12:57

$message = '
<html>
<head>
  <title>Review Request Reminder</title>
</head>
<body>
  <p>Here are the cases requiring your review in December:</p>
  <table>
    <tr>
      <th>Case title</th><th>Category</th><th>Status</th><th>Due date</th>
    </tr>
    <tr>
      <td>Case 1</td><td>Development</td><td>pending</td><td>Dec-20</td>
    </tr>
    <tr>
      <td>Case 1</td><td>DevOps</td><td>pending</td><td>Dec-21</td>
    </tr>
  </table>
</body>
</html>
';
A detailed guide on PHP mail sending options with examples of using the built-in mail function(), PHPMailer, Pear mail, and Swift Mailer.
content_copy