by
KK » Thu Oct 13, 2011 6:30 am
Let us make sure first if we can at all send emails.
Try putting the following snippet in any of your template (put real email addresses in the 'from' and 'to' parameters)
Accessing the template should result in the email being sent.
If you do not get the email, add the 'debug' parameter to the code -
Access the template again. A file named 'log.txt' should get created in the root of your website.
(if not, there is a permission issue so please manually create a file named 'log.txt' in your site's root and give it read/write permission).
The 'log.txt' file should contain info that will help you troubleshoot the problem.
You can also try setting the following in your 'config.php' to '1'
- Code: Select all
// 15.
// By default the inbuilt php function 'mail()' is used to deliver messages.
// On certain hosts this function might fail due to configuration problems.
// In such cases, set the following to '1' to use an alternative method to send emails
define( 'K_USE_ALTERNATIVE_MTA', 0 );
This will use an alternative method to try and send the mail.
Do let me know if this helps.