# TooManyLinksIntoHTMLString message when Mailing quotes

**URL:** <https://www.dolibarr.org/forum/t/toomanylinksintohtmlstring-message-when-mailing-quotes/24538>\
**Category:** PM modules\
**Created:** [November 9, 2023, 5:23pm UTC](https://www.dolibarr.org/forum/t/toomanylinksintohtmlstring-message-when-mailing-quotes/24538 "2023-11-09T17:23:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jrcarmona](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/j/5f8ce5/32.png) [@jrcarmona](https://www.dolibarr.org/forum/u/jrcarmona)\
**Post date:** [November 9, 2023, 5:23pm UTC](https://www.dolibarr.org/forum/t/toomanylinksintohtmlstring-message-when-mailing-quotes/24538/1 "2023-11-09T17:23:58Z")

</div>

Hi.

I’m trying to create an email template to use it as default template for Quotes.

I design the template using system tags to get automatic fields when sending the mail message and i get an error TooManyLinksIntoHTMLString.

Only works when i use one automatic field, but not with two or more.

I really preciate if some one could solve this issue.

Using Dolibarr 18.0.2 with CPanel at shared server.

---

<div class="post-metadata">

**Author:** ![emekconnect](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/e/8491ac/32.png) [@emekconnect](https://www.dolibarr.org/forum/u/emekconnect)\
**Post date:** [March 20, 2024, 12:33am UTC](https://www.dolibarr.org/forum/t/toomanylinksintohtmlstring-message-when-mailing-quotes/24538/2 "2024-03-20T00:33:12Z")

</div>

Hello,  
Did you find any solution to this error.  
I have the same error when I use an html link to a file. dolibarr 18.0.4 or 19.0.0 same error.  
I tried the full url to my image, not resolved. When I remove image, it works :confused:  
Thanks.

---

<div class="post-metadata">

**Author:** ![emekconnect](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/e/8491ac/32.png) [@emekconnect](https://www.dolibarr.org/forum/u/emekconnect)\
**Post date:** [March 20, 2024, 12:39am UTC](https://www.dolibarr.org/forum/t/toomanylinksintohtmlstring-message-when-mailing-quotes/24538/3 "2024-03-20T00:39:28Z")

</div>

Hello.

Find the solution on Dolibarr’s french forum.  
**Under Configuration / Divers,**  
set a value \> 0 for number of max image. Exemple:

**MAIN\_SECURITY\_MAX\_IMG\_IN\_HTML\_CONTENT = 10**

Good luck  
Mustafa

---

<div class="post-metadata">

**Author:** ![somtic](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/somtic/32/4862_2.png) [@somtic](https://www.dolibarr.org/forum/u/somtic)\
**Post date:** [February 10, 2025, 6:46pm UTC](https://www.dolibarr.org/forum/t/toomanylinksintohtmlstring-message-when-mailing-quotes/24538/4 "2025-02-10T18:46:32Z")

</div>

Hello,  
I have the same problem, also creating an email template for a document or creating a signature for email.

I’m using Dolibarr 20.0.3 , PHP 8.2

This: **MAIN\_SECURITY\_MAX\_IMG\_IN\_HTML\_CONTENT = 10** in setup others don’t solve the problem of TooManyLinksIntoHTMLString for me.

I’m not able to put the company logo in the email.

Thank you!
