# Email not sending

By default, WordPress uses the PHP mail function to send emails generated by WordPress. The most common reason for not sending emails is that your WordPress hosting server is not configured to use [PHP mail()](https://www.php.net/manual/en/function.mail.php) function.

In addition to this, sometimes email providers will flag or block emails that arrive from a different domain than they claim. For example, if your From Email is @gmail.com, but your domain is [www.example.com](http://www.example.com), this domain mismatch may cause an email provider to block the email.&#x20;

To resolve email delivery issues, we recommend using SMTP to send emails in WordPress. Unlike the PHP mail function, SMTP increases email deliverability by using proper authentication.


---

# 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://docs.stylemixthemes.com/masterstudy-lms/troubleshooting/email-not-sending.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.
