> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.stylishcostcalculator.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Error Code 5: Email Failed to Send

## ${color}[#314AF3](Problem)

### Error Code 5: Email Failed to Send
**Why does this happen?**  
This happens when there is a problem with your SMTP server, PDF generation, or Captcha settings.
---
## ${color}[#314AF3](Solution)

### Step 1 | Google Captcha
* a. Access the **Global Settings** menu of **Stylish Cost Calculator**.
* b. Do you have Google's Captcha settings turned on? If yes, try turning it off.
![Captcha Settings](https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/48333641538/original/YQNL9pDuPUrbfZQyuygg28yggVOKj31IJA.jpg?1713130302)
**✅ Did it fix the problem?**  
If yes, then you have a problem with your Google Captcha settings. Verify you have the correct API keys.  

**⭕ Still have a problem?**  
Then, Google Captcha is not the problem, please proceed to step 2.
---
### Step 2 | PDF Generator
* Let's test if the problem is the PDF Generator by trying to download a PDF in the backend.
* a. Access your calculator in the dashboard (backend).
* b. Click the **Detailed List** button.
* c. Click the **Save** icon.
![PDF Generator](https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/48333641632/original/J93pcPFE7MR4a5_hMrzLfn-AIL91WNhzCA.jpg?1713130774)

**⭕ Did it fail?**  
Then, try removing your banner and logo in the global settings menu. If that fixed it, re-add it back. It could be a missing file, corrupted file, or wrong image format.  

**✅ Did it work?**  
If yes, then the problem is not your PDF Generator. Proceed to step 3.
---
### Step 3 | GD Library
In order for **Stylish Cost Calculator** to work, it needs the GD PHP Library.
* a. Click Diagnostic in the **Stylish Cost Calculator** menu.
* b. Check if you have a green button under the GD library.
![GD Library](https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/48333641676/original/GD0jA2rxmMYPTQ0aB0BIGf0QQWskGPR2ng.jpg?1713131018)

**⭕ Is it red?**  
Then, talk to your hosting company about how to install the GD Library.  

**✅ Is it green?**  
Then, the problem is not the GD library, please proceed to step 4.
---
### Step 4 | SMTP Settings
In most cases for **Stylish Cost Calculator** to work, you need to have a proper SMTP plugin that routes the emails via your own SMTP server.
* a. Access the WP SMTP plugin.
* b. Click **Settings**.
* c. Click **Email Test**.
* d. Send yourself an email test.

**⭕ Did it fail?**  
Then you have to fix your SMTP setting. It may be the wrong port or credentials.  

**✅ Did it work?**  
Then, the problem is something other than the four things above. Please submit a trouble ticket and advise us of all the troubleshooting steps that you have taken.
---
## ${color}[#314AF3](Additional Information)

### All Elements & Features
* Learn more about [All Elements](https://designful.freshdesk.com/a/solutions/categories/48000446985/folders/48000683568)
* Learn more about [All Features](https://designful.freshdesk.com/a/solutions/categories/48000446985/folders/48000658562)

### Need Support?
* Ask a [question or request support](https://stylishcostcalculator.com/support)
* Request [a feature or give feedback](https://stylishcostcalculator.com/how-can-we-be-better/)

![](https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/48333468568/original/bTbdA5Q8kUQHZGvqUMYpK6RM6XpRRQItkQ.png?1712885072)

![](https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/48333468566/original/UgSPRZYVb9rL_mLMxmdxozDNuUTsZebfyw.png?1712885072)
