Hackerss.com

hackerss
hackerss

Posted on

How to send an email in Php

How to send an email - Php:


<?php

//create a function that How to send an email with comments
function sendEmail($to, $subject, $message) {
  //send email
  mail($to, $subject, $message);
}

//example
sendEmail('[email protected]', 'Hello', 'Hello John');


Enter fullscreen mode Exit fullscreen mode

Top comments (0)