Could Not Instantiate Mail Function

General questions relating to Joomla! 5.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Post Reply
User avatar
Windwood
Joomla! Intern
Joomla! Intern
Posts: 97
Joined: Sun May 02, 2010 7:03 pm
Location: Cincinnati, Ohio
Contact:

Could Not Instantiate Mail Function

Post by Windwood » Sat May 25, 2024 6:00 pm

https://docs.joomla.org/How_to_debug_SM ... n_Joomla_4
went through the above information to try and correct issue and no joy.
Here is the code from "everything.php"
any help appreciated.

Here's the website in question:
https://www.ohiovalleycameraclub.com/contact

#
#<?php die('Forbidden.'); ?>
#Date: 2024-05-25 17:42:52 UTC
#Software: Joomla! 5.1.0 Stable [ Kudumisha ] 16-April-2024 16:00 GMT

#Fields: datetime priority clientip category message
2024-05-25T17:42:52+00:00 ERROR 216.196.140.150 mail Error in Mail API: Sending with mail()
2024-05-25T17:42:52+00:00 ERROR 216.196.140.150 mail Error in Mail API: Sendmail path: /usr/sbin/sendmail -t -i
2024-05-25T17:42:52+00:00 ERROR 216.196.140.150 mail Error in Mail API: Envelope sender:
2024-05-25T17:42:52+00:00 ERROR 216.196.140.150 mail Error in Mail API: To: OVCC <[email protected]>
2024-05-25T17:42:52+00:00 ERROR 216.196.140.150 mail Error in Mail API: Subject: Test mail from OVCC
2024-05-25T17:42:52+00:00 ERROR 216.196.140.150 mail Error in Mail API: Headers: Date: Sat, 25 May 2024 17:42:52 +0000
From: OVCC <[email protected]>
Message-ID: <TwGIJZDSePTwlOrtS7iqslqJlGFFvJNPlm5Ubyw4oc@www.ohiovalleycameraclub.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8


2024-05-25T17:42:52+00:00 ERROR 216.196.140.150 mail Error in Mail API: Result: false
2024-05-25T17:42:52+00:00 ERROR 216.196.140.150 mail Error in Mail API: Could not instantiate mail function.
2024-05-25T17:42:52+00:00 ERROR 216.196.140.150 mail Error in Mail API: Sending with mail()
2024-05-25T17:42:52+00:00 ERROR 216.196.140.150 mail Error in Mail API: Sendmail path: /usr/sbin/sendmail -t -i
2024-05-25T17:42:52+00:00 ERROR 216.196.140.150 mail Error in Mail API: Envelope sender:
2024-05-25T17:42:52+00:00 ERROR 216.196.140.150 mail Error in Mail API: To: OVCC <[email protected]>
2024-05-25T17:42:52+00:00 ERROR 216.196.140.150 mail Error in Mail API: Subject: Test mail from OVCC
2024-05-25T17:42:52+00:00 ERROR 216.196.140.150 mail Error in Mail API: Headers: Date: Sat, 25 May 2024 17:42:52 +0000
From: OVCC <[email protected]>
Message-ID: <VujG38gGBpYQFYL795UhSd5p5hVCkSdRioeBkJviw@www.ohiovalleycameraclub.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8


2024-05-25T17:42:53+00:00 ERROR 216.196.140.150 mail Error in Mail API: Result: false
2024-05-25T17:42:53+00:00 ERROR 216.196.140.150 mail Error in Mail API: Could not instantiate mail function.
2024-05-25T17:45:23+00:00 DEBUG 216.196.140.150 webauthn.system Injecting WebAuthn Passwordless Login fields in user profile edit page
2024-05-25T17:45:23+00:00 DEBUG 216.196.140.150 webauthn.system Injecting WebAuthn Passwordless Login fields in user profile edit page
2024-05-25T17:45:23+00:00 DEBUG 216.196.140.150 webauthn.system Injecting WebAuthn Passwordless Login fields in user profile edit page
2024-05-25T17:45:23+00:00 ERROR 216.196.140.150 mail Error in Mail API: Sending with mail()
2024-05-25T17:45:23+00:00 ERROR 216.196.140.150 mail Error in Mail API: Sendmail path: /usr/sbin/sendmail -t -i
2024-05-25T17:45:23+00:00 ERROR 216.196.140.150 mail Error in Mail API: Envelope sender:
2024-05-25T17:45:23+00:00 ERROR 216.196.140.150 mail Error in Mail API: To: "[email protected]" <[email protected]>
2024-05-25T17:45:23+00:00 ERROR 216.196.140.150 mail Error in Mail API: Subject: OVCC: Test Message
2024-05-25T17:45:23+00:00 ERROR 216.196.140.150 mail Error in Mail API: Headers: Date: Sat, 25 May 2024 17:45:23 +0000
From: OVCC <[email protected]>
Reply-To: Rick Hartigan <[email protected]>
Message-ID: <IqdeU7mioCKxZYLhgjHAztD34yamMnB2LW9CHauTQd8@www.ohiovalleycameraclub.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8


2024-05-25T17:45:23+00:00 ERROR 216.196.140.150 mail Error in Mail API: Result: false
2024-05-25T17:45:23+00:00 ERROR 216.196.140.150 mail Error in Mail API: Could not instantiate mail function.
2024-05-25T17:45:23+00:00 ERROR 216.196.140.150 mail Error in Mail API: Sending with mail()
2024-05-25T17:45:23+00:00 ERROR 216.196.140.150 mail Error in Mail API: Sendmail path: /usr/sbin/sendmail -t -i
2024-05-25T17:45:23+00:00 ERROR 216.196.140.150 mail Error in Mail API: Envelope sender:
2024-05-25T17:45:23+00:00 ERROR 216.196.140.150 mail Error in Mail API: To: "[email protected]" <[email protected]>
2024-05-25T17:45:23+00:00 ERROR 216.196.140.150 mail Error in Mail API: Subject: OVCC: Test Message
2024-05-25T17:45:23+00:00 ERROR 216.196.140.150 mail Error in Mail API: Headers: Date: Sat, 25 May 2024 17:45:23 +0000
From: OVCC <[email protected]>
Reply-To: Rick Hartigan <[email protected]>
Message-ID: <uNVXOkntmF29HhnV8lSeYqKO7KqERNjbptflW3EjGDE@www.ohiovalleycameraclub.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8


2024-05-25T17:45:23+00:00 ERROR 216.196.140.150 mail Error in Mail API: Result: false
2024-05-25T17:45:23+00:00 ERROR 216.196.140.150 mail Error in Mail API: Could not instantiate mail function.
2024-05-25T17:45:23+00:00 WARNING 216.196.140.150 jerror Could not instantiate mail function.
2024-05-25T17:45:24+00:00 DEBUG 216.196.140.150 webauthn.system Injecting WebAuthn Passwordless Login fields in user profile edit page
2024-05-25T17:45:24+00:00 DEBUG 216.196.140.150 webauthn.system Injecting WebAuthn Passwordless Login fields in user profile edit page
2024-05-25T17:45:24+00:00 DEBUG 216.196.140.150 webauthn.system Injecting WebAuthn Passwordless Login fields in user profile edit page
2024-05-25T17:45:24+00:00 DEBUG 216.196.140.150 webauthn.system Injecting WebAuthn Passwordless Login fields in user profile edit page
2024-05-25T17:45:25+00:00 CRITICAL 216.196.140.150 error Uncaught Throwable of type Joomla\CMS\Router\Exception\RouteNotFoundException thrown with message "Page not found". Stack trace: #0 [ROOT]/libraries/src/Application/SiteApplication.php(754): Joomla\CMS\Router\Router->parse(Object(Joomla\CMS\Uri\Uri), true)
#1 [ROOT]/libraries/src/Application/SiteApplication.php(244): Joomla\CMS\Application\SiteApplication->route()
#2 [ROOT]/libraries/src/Application/CMSApplication.php(306): Joomla\CMS\Application\SiteApplication->doExecute()
#3 [ROOT]/includes/app.php(58): Joomla\CMS\Application\CMSApplication->execute()
#4 [ROOT]/index.php(32): require_once('/home/ohiova7/o...')
#5 {main}
Last edited by AMurray on Sat May 25, 2024 10:30 pm, edited 1 time in total.
Reason: mod note: changed "[code]" tags containing URLs to "[url]" tags for readability and active working links.

User avatar
AMurray
Joomla! Exemplar
Joomla! Exemplar
Posts: 9915
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: Could Not Instantiate Mail Function

Post by AMurray » Sat May 25, 2024 10:36 pm

Are you using SMTP method for the email setting? The above joomla documentation link you provided is about "debug of SMTP" problems.

Your "everything" log report suggests you're using sendmail, not SMTP. ???

Sendmail is a server function; is it active on your server? (A question for your web host to confirm).
Regards - A Murray
General Support Moderator


Post Reply

Return to “General Questions/New to Joomla! 5.x”