When specifying outgoing mail in site settings the parameter is automatically added to sendmail -f
specifying the name of the sender (field FROM
). If site scripts try to override this parameter on their own, then when trying to send mail using the function mail the site may receive an error of the impossibility of calling this function, like “Failed to call the mail function" or "Could not instantiate mail function"(The text of the error and the way of its output depends on the used CMS or framework). For example, this situation can be encountered when sending mail using the library PHPMailerwhich adds the parameter -f
default.
To fix the situation, use one of the following methods:
-f
):
from 2-00 to 7-00