Skip to content

Instantly share code, notes, and snippets.

@AbhishekGhosh
Created May 29, 2023 16:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AbhishekGhosh/be4f5a72b7f336ee3e9ce4ce6d8ab20e to your computer and use it in GitHub Desktop.
Save AbhishekGhosh/be4f5a72b7f336ee3e9ce4ce6d8ab20e to your computer and use it in GitHub Desktop.
PHP mail testing script
<?php
$to = "recipient@gmail.com";
$from = "sender@hotmail.com";
$subj = "sending email using php mail() function";
$body = "This email is sent using php mail() function. This proves that your msmtp service is correctly configured with php.";
mail($to, $subj, $body);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment