How to send email using PHP script and check it?
- Open domain directory
Create simple PHP file (
mail.php,for example) with content as below:
// Send email
mail("firstname.lastname@example.org","hello","test mail function");
email@example.com be changed to any email address.
Make sure that PHP is enabled on domain under Plesk > Domains > example.com > Hosting settings > PHP
Try to browse the mentioned PHP page in Internet Browser: http://example.com/mail.php