Last active
June 23, 2024 23:03
-
-
Save Shakil-Shahadat/67f8940804c3debc8761d9656155f882 to your computer and use it in GitHub Desktop.
[ Delete ] Send Email Using PHP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$to = '[email protected]'; | |
$subject = 'Test mail'; | |
$message = 'Hello! This is a simple email message.'; | |
$from = '[email protected]'; | |
$headers = 'From: ' . $from; | |
mail( $to, $subject, $message, $headers ); | |
echo 'Mail Sent.'; |
Author
Shakil-Shahadat
commented
Dec 18, 2021
•
- Move this to miscellaneous.php.
- See if mail() returns anything, if so, improve this example.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment