# Why is the mail() function disabled?

For security reasons, the option to send emails through the **mail()** function in PHP is disabled.

To get your forms working, we recommend following the instructions in the following link:\
[What is PHPMailer and what is it used for?](/menu-principal/guias/correo-electronico/problemas-con-sus-correos/phpmailer.md)

If your site is WordPress, you can also follow these steps:\
<https://blog.sitioshispanos.com/tutoriales/enviando-emails-autenticados-en-wordpress-utilizando-wp-smtp/>.

If you use Joomla:\
<https://blog.sitioshispanos.com/constructor-web/como-configurar-joomla-para-enviar-correos-electronicos-usando-smtp/>.

If you use Moodle:\
<https://blog.sitioshispanos.com/moodle/configurar-smtp-para-el-envio-de-correos-en-moodle/>.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.sitioshispanos.com/menu-principal/guias/correo-electronico/problemas-con-sus-correos/funcion-mail-desactivada.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
