User Tools

Site Tools


faq:troubleshooting-could-not-instantiate-mail-function

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
faq:troubleshooting-could-not-instantiate-mail-function [2014/02/27 10:39]
Alia
faq:troubleshooting-could-not-instantiate-mail-function [2014/02/27 11:18] (current)
Line 1: Line 1:
 ====== Troubleshooting "Could not instantiate mail function"​ ====== ====== Troubleshooting "Could not instantiate mail function"​ ======
  
-Full error message: ​+Full error message: ​ 
 <code php> <code php>
 OW Debug - Exception OW Debug - Exception
 Message: Could not instantiate mail function. Message: Could not instantiate mail function.
-File: /var/​www/​friendly/​data/​www/​friendly.ru/​ow_libraries/​php_mailer/​class.phpmailer.php+File: /mysitename/​ow_libraries/​php_mailer/​class.phpmailer.php
 Line: 595 Line: 595
 Trace: Trace:
Line 37: Line 37:
  
 <code php> <?php $to = '​recepient@example.com';​ $subject = 'Test email using PHP'; $message = 'This is a test email message';​ $headers = 'From: any_sender_email@example.com'​ . "​\r\n"​ . '​Reply-To:​ webmaster@example.com'​ . "​\r\n"​ . '​X-Mailer:​ PHP/' . phpversion();​ mail($to, $subject, $message, $headers, '​-fany_sender_email@example.com'​);​ ?> </​code>​ <code php> <?php $to = '​recepient@example.com';​ $subject = 'Test email using PHP'; $message = 'This is a test email message';​ $headers = 'From: any_sender_email@example.com'​ . "​\r\n"​ . '​Reply-To:​ webmaster@example.com'​ . "​\r\n"​ . '​X-Mailer:​ PHP/' . phpversion();​ mail($to, $subject, $message, $headers, '​-fany_sender_email@example.com'​);​ ?> </​code>​
- 
 Where  Where 
   * any_sender_email@example.com - your sender'​s email   * any_sender_email@example.com - your sender'​s email
Line 54: Line 53:
 Check the email you have set for "​recepient@example.com"​. ​ Check the email you have set for "​recepient@example.com"​. ​
  
-If you don't receive testing email, ​then PHP mail script is not working+If you don't receive testing email, ​contact your hosting provider and check
  
-  - Check whether phpmailer library is installed/​enabled/​configured on your server +  - whether phpmailer library is installed/​enabled/​configured on your server. 
-  - Check whether php mail() function is installed/​enabled/​configured on your server +  - whether php mail() function is installed/​enabled/​configured on your server.
-        Best way to check this, is to contact your hosting provider.+
  
 If you receive testing email, php mail script is working on your server. In this case, "Could not instantiate mail function"​ is most likely to be caused by php mailer libraries used in Oxwall itself. If you receive testing email, php mail script is working on your server. In this case, "Could not instantiate mail function"​ is most likely to be caused by php mailer libraries used in Oxwall itself.
Line 64: Line 62:
 ===== Phpmailer libraries used within Oxwall =====  ===== Phpmailer libraries used within Oxwall ===== 
  
-If your have tried all the steps listed above, have contacted your hosting provider ​and are still getting "Could not Instantiate Mail Function"​ then phpmailer libraries used in Oxwall might not be compatible with your server'​s configuration. ​+If you have tried all the steps listed above and are still getting "Could not Instantiate Mail Function"​ then phpmailer libraries used in Oxwall might not be compatible with your server'​s configuration. ​
  
 Open ow_libraries/​php_mailer/​class.phpmailer.php and find line #571: Open ow_libraries/​php_mailer/​class.phpmailer.php and find line #571:
faq/troubleshooting-could-not-instantiate-mail-function.1393497575.txt.gz · Last modified: 2015/09/15 09:10 (external edit)