# Emailing function

**URL:** <https://www.dolibarr.org/forum/t/emailing-function/12482>\
**Category:** Using my Dolibarr\
**Created:** [August 20, 2015, 9:50am UTC](https://www.dolibarr.org/forum/t/emailing-function/12482 "2015-08-20T09:50:58Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![a\_schneider](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/a/f07891/32.png) [@a\_schneider](https://www.dolibarr.org/forum/u/a_schneider)\
**Post date:** [August 20, 2015, 9:50am UTC](https://www.dolibarr.org/forum/t/emailing-function/12482/1 "2015-08-20T09:50:58Z")

</div>

Hello all,

since 3 Month I am searching in the Internet about a Error I get when I try to send mails from Dolibarr.

The connection test to the server show the following:  
Serververfügbarkeit testen  
Server ist verfügbar unter der Adresse ssl://mail.ARCOR.DE auf Port 465  
What say’s yes is working.

Then I try to send a Email form Dolibarr and I get the following Error:  
Error  
Error [120]: Ran into problems sending Mail. Response: 554 5.7.1 : Helo command rejected: EHLO invalid Error [120]: Ran into problems sending Mail. Response: 554 5.5.1 Error: no valid recipients Error [120]: Ran into problems sending Mail. Response: 221 2.7.0 Error: I can break rules, too. Goodbye.

My Configuration is like this.:  
Method: Smtp soket lib  
Host: [mail.arcor.de](http://mail.arcor.de)  
Port: Standard 465  
my name  
my password  
TSL try yes or no  
Main\_Mail\_Debug 1 in the log file is nothing important written.  
does someone has a tip?

regards  
Andreas

---

<div class="post-metadata">

**Author:** ![eldy](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/eldy/32/12_2.png) [@eldy](https://www.dolibarr.org/forum/u/eldy)\
**Post date:** [August 20, 2015, 12:43pm UTC](https://www.dolibarr.org/forum/t/emailing-function/12482/2 "2015-08-20T12:43:44Z")

</div>

Which method do you use ?  
“PHP mail” or “SMTP socket library” ?  
Did you try with another smtp provider ?  
What if you use the “Test sending” from page home - setup - email (not the “test server availbility”)

---

<div class="post-metadata">

**Author:** ![planpc](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/planpc/32/303_2.png) [@planpc](https://www.dolibarr.org/forum/u/planpc)\
**Post date:** [August 21, 2015, 9:21am UTC](https://www.dolibarr.org/forum/t/emailing-function/12482/3 "2015-08-21T09:21:15Z")

</div>

Hello a\_schneider,

could you test with host [mx.arcor.de](http://mx.arcor.de) instead of [mail.arcor.de](http://mail.arcor.de) and tell what happend?

Regards

---

<div class="post-metadata">

**Author:** ![a\_schneider](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/a/f07891/32.png) [@a\_schneider](https://www.dolibarr.org/forum/u/a_schneider)\
**Post date:** [August 21, 2015, 1:09pm UTC](https://www.dolibarr.org/forum/t/emailing-function/12482/4 "2015-08-21T13:09:10Z")

</div>

Hello planpc, Hello Eldy,

with [mx.arcor.de](http://mx.arcor.de) (all other thinks still the same) I get this Error:  
Server nicht verfügbar unter Adresse ssl://mx.ARCOR.DE auf Port 465 - Error 111 - Connection refused (the same with port 25 the Standard port for mx) But with TLS: No I get :confused:erver ist verfügbar unter der Adresse [mx.ARCOR.DE](http://mx.ARCOR.DE) auf Port 25  
Because of this (from Arcor Home page):  
[color=#440088][mx.arcor.de](http://mx.arcor.de) unterstützt keinen SSL-Zugriff über Port 465 (macht bei MX auch wenig Sinn), d.h. der Server ist nur über TLS auf Port 25 erreichbar und da wird nur TLS 1.x unterstützt.

[mail.arcor.de](http://mail.arcor.de) unterstützt SMTP-Secure auf Port 465 und da werden laut sslscan folgende Cipher angeboten:

Accepted TLSv1 256 bits AES256-SHA  
Accepted TLSv1 128 bits AES128-SHA  
Accepted TLSv1 128 bits RC4-SHA[/color]

Sending than an Email I get this message:  
Fehlschlag  
Error [120]: Ran into problems sending Mail. Response: 503 5.5.1 Error: authentication not enabled Error [120]: Ran into problems sending Mail. Response: 502 5.5.2 Error: command not recognized Error [120]: Ran into problems sending Mail. Response: 502 5.5.2 Error: command not recognized Error [130]: Invalid Authentication Credentials.  
But the Username and the Password are not changed.

To Eldy:  
Methed is:Method: Smtp soket lib (SMTP Socket Libary)

until know I do not have another Email or smtp provider but I will try over the weekend.  
What if you use the “Test sending” from page home - setup - email (not the “test server availbility”)  
until Know I have not done it in another way. What happens is: I get a with page. (dolibarr/admin/mails.php)  
May I have forgotten to set-up something in the right way?  
Regards

---

<div class="post-metadata">

**Author:** ![planpc](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/planpc/32/303_2.png) [@planpc](https://www.dolibarr.org/forum/u/planpc)\
**Post date:** [August 21, 2015, 2:47pm UTC](https://www.dolibarr.org/forum/t/emailing-function/12482/5 "2015-08-21T14:47:09Z")

</div>

I guess that dolibarr is not hosted on the same server that [ARCOR.DE](http://ARCOR.DE) is, and you are trying to use [arcor.de](http://arcor.de) smtp server, am I right?

In that case maybe you must contact your hoster or server administrator to allow send email from the Dolibarr host IP, as this server only allow these ranges of IP to send email.(attached image of spf file, public info)

Hope it helps

> Pièces jointes :
> 
> - [arcor.jpg](https://www.dolibarr.org/forum/uploads/short-url/wXUPJcO3heqdXImkhyb46QHjGoF.jpeg) (55.5 KB)

---

<div class="post-metadata">

**Author:** ![a\_schneider](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/a/f07891/32.png) [@a\_schneider](https://www.dolibarr.org/forum/u/a_schneider)\
**Post date:** [September 2, 2015, 11:26am UTC](https://www.dolibarr.org/forum/t/emailing-function/12482/6 "2015-09-02T11:26:05Z")

</div>

Now after one Week, without your help Mr or Ms PlanPc, it is working perfect with PHP mail. And it was easy to Implement.  
It was not a problem with " not hosted on the same server that [ARCOR.DE](http://ARCOR.DE) is"  
It is also not a Problem with Dolibarr itself. It is just a Problem with the Bad documentation here “[http://wiki.dolibarr.org/index.php/Prerequisite](http://wiki.dolibarr.org/index.php/Prerequisite)” Some requirements are missing.  
If someone like to know how it is working send me an Email and I will help him or here to get Email with dolibarr working.

---

<div class="post-metadata">

**Author:** ![reinaldo](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/r/439d5e/32.png) [@reinaldo](https://www.dolibarr.org/forum/u/reinaldo)\
**Post date:** [March 23, 2020, 6:16pm UTC](https://www.dolibarr.org/forum/t/emailing-function/12482/7 "2020-03-23T18:16:52Z")

</div>

Hello, I have the same problem,  
Error [120]: Ran into problems sending Mail. Response: 535 Incorrect authentication data Error [130]: Invalid Authentication Credentials.  
Can you tellme how solve this?,

---

<div class="post-metadata">

**Author:** ![adnanbutt050](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/adnanbutt050/32/2613_2.png) [@adnanbutt050](https://www.dolibarr.org/forum/u/adnanbutt050)\
**Post date:** [March 24, 2020, 10:57am UTC](https://www.dolibarr.org/forum/t/emailing-function/12482/8 "2020-03-24T10:57:17Z")

</div>

Hello,  
I am also getting this error after updating dolibarr to 11 version as it was working flawlessly in the previous version.

**Error [132]: STARTTLS connection failed. Error [121]: Couldn’t get mail server response codes Error [120]: Ran into problems sending Mail. Response:**

Any help would be much appreciated.

Kind Regards,  
Adnan

---

<div class="post-metadata">

**Author:** ![fernando.son](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/f/b3f665/32.png) [@fernando.son](https://www.dolibarr.org/forum/u/fernando.son)\
**Post date:** [November 10, 2020, 10:05pm UTC](https://www.dolibarr.org/forum/t/emailing-function/12482/9 "2020-11-10T22:05:22Z")

</div>

Hi, I saw your post, and I have the same problem in dolibarr, could you share the prerequisite information that the server needs to solve the error.  
Greetings from Guatemala

---

<div class="post-metadata">

**Author:** ![wilfredjavier](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/wilfredjavier/32/4302_2.png) [@wilfredjavier](https://www.dolibarr.org/forum/u/wilfredjavier)\
**Post date:** [May 12, 2021, 9:02pm UTC](https://www.dolibarr.org/forum/t/emailing-function/12482/10 "2021-05-12T21:02:16Z")

</div>

Hello. It worked for me doing several things. One making sure that Php memory\_limit is equal to or greater than 128MB. 2.- That the mail from the smtp: mail.yoursdomain, or whatever, has the correct port. 3.- That the email is the same as the previous domain.

[image]

---

<div class="post-metadata">

**Author:** ![wingroup](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/wingroup/32/4458_2.png) [@wingroup](https://www.dolibarr.org/forum/u/wingroup)\
**Post date:** [July 26, 2021, 3:19pm UTC](https://www.dolibarr.org/forum/t/emailing-function/12482/11 "2021-07-26T15:19:08Z")

</div>

Hello, could you help me to solve this problem,  
thank you

---

<div class="post-metadata">

**Author:** ![Marcel1](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/m/43a26b/32.png) [@Marcel1](https://www.dolibarr.org/forum/u/Marcel1)\
**Post date:** [January 31, 2024, 8:20am UTC](https://www.dolibarr.org/forum/t/emailing-function/12482/12 "2024-01-31T08:20:00Z")

</div>

Hallo A. Schneider,  
ich habe seit Version 18.0.4. das gleiche Problem. Bei 18.0.2 gehen die Emails noch. Bin bei gmx…was kann ich tun, damit ich wieder emails schicken kann.  
Habe alles so eingetragen, wie es gmx verlangt und wie es vorher auch war.

Danke  
LG  
Marcel

---

<div class="post-metadata">

**Author:** ![Marcel1](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/m/43a26b/32.png) [@Marcel1](https://www.dolibarr.org/forum/u/Marcel1)\
**Post date:** [January 31, 2024, 8:20am UTC](https://www.dolibarr.org/forum/t/emailing-function/12482/13 "2024-01-31T08:20:42Z")

</div>

gerne Hilfe über telefon…
