Hi.
First of all make sure your hosting mail account is not blocked by your hosting account spam protection system. To test it simply upload simple php email sender to your for root directory and then access it like this:
yoursite.com/test.php
Save this code as
test.php
PHP Code:
<? $headers = 'From: webmaster@example.com'; mail('nobody@example.com', 'Test email using PHP', 'This is a test email message', $headers, '-fwebmaster@example.com'); ?>
Alternatively try this test php mail function.
PHP Code:
<?php $to = 'nobody@example.com'; $subject = 'Test email using PHP'; $message = 'This is a test email message'; $headers = 'From: webmaster@example.com' . "\r\n" . 'Reply-To: webmaster@example.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers, '-fwebmaster@example.com'); ?>
In the code 1 or 2 replace
nobody@example.com with the recipient email.
If you don't get the email contact your hosting provider.
In the Admin control panel find Mail Settings and if it's set to PHP switch it to SMTP.
Note you will need to configure SMTP mail settings.