How to use the PHP mail() function?
To use PHP mail() function, you need to create a mailbox in the Mail section in the user panel and add it as a sender address in the header From.
Example code:$to = 'nobody@example.com';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: webmaster@happyuser.lea.mx';
mail($to, $subject, $message, $headers);