Site (and Form) not sending email

Permalink 1 user found helpful
I have spent several hours trying the various things posted on the forum to fix this simple issue, with no solution.

Why won't my simple contact form send email?

 
adajad replied on at Permalink Reply
adajad
What mail function do you use? If you are using the built in php mail() function your host might have blocked that usage (or port 25) as to prevent spamming (or for any other reason).

You could set up an external SMTP server and test with a google account (go to 'index.php/dashboard/system/mail/method/'):

External SMTP server checked
Mail Server: smtp.gmail.com
Username: yourmail@gmail.com
Password: your_gmail_password
Encryption: TLS
Port: 587

You can also define a default from address in your site.php (in config directory):
define('EMAIL_DEFAULT_FROM_ADDRESS', 'no-reply@yourdomain.com');


What does your log say when you send your emails('index.php/dashboard/reports/logs/)?