Page 1 of 2

Connection closed gracefully

Posted: Sun Apr 17, 2016 6:11 pm
by marcolobaido
Hi, I have a problem when I try to send e-mails using the text loop.
The error is: Connection closed gracefully.

The task works just for few mail and then it stops.

Re: Connection closed gracefully

Posted: Mon Apr 18, 2016 6:41 am
by Oleg
This means that the server has closed the connection.
Some public SMTP servers have limitation of the amount of messages per day.

Re: Connection closed gracefully

Posted: Mon Apr 18, 2016 12:28 pm
by marcolobaido
But if I write those mails manually I succeed to send them...

Re: Connection closed gracefully

Posted: Mon Apr 18, 2016 1:19 pm
by Oleg

Code: Select all

But if I write those mails manually I succeed to send them...
So the problem in the task. Maybe you specify incorrect connection parameters (port, SSL/TLS or plain connection, sender email, username and so on)
Re-check it please.

Re: Connection closed gracefully

Posted: Mon Apr 18, 2016 2:19 pm
by marcolobaido
Connection parameters are correct. The text loop works for few mails then it stops.

I use:
Server: smtp.libero.it
Port: 465 with SSL

I tried the Port 25 without SSL but nothing...
The problem remains also with antivirus and firewall deactivated.

Re: Connection closed gracefully

Posted: Mon Apr 18, 2016 3:07 pm
by Oleg
I can't test it, because I have not the account at Libero.it and I can't open the account.
I tested Send Email on Gmail it works. It has similar parameters: post 465 with SSL and authentication.

You try to send mails in the loop. Pay attention that public mail services doesn't allow to send messages very often.
As a rule such services have limitation of messages per some unity of time.
Suppose 10 messages per hour (or similar). You have to read this in documentation or ask support team of this service.
Gmail has similar limitation too.

I see in your log that several messages has been sent successfully. So it works. The action opens connection before sending of each message and closes the session when sending is complete.
How many messages have been sent before error?

Re: Connection closed gracefully

Posted: Mon Apr 18, 2016 4:31 pm
by marcolobaido
I edited the task yesterday and it blocked at few mails (5-10). Sometimes i tried every minute but it started to work after 30mins - 1 hour (random time).
This morning I succeeded to send only 20 mails in 4-5 hours...sometimes it send 5 mails, after few time another one, it stops for more than an hour and then it sends five...It's really unstable. 10 minutes ago it unblocked and it sent all the mails (about 80-100).
It seems like libero recognize that the mail is not sent by a person.

Re: Connection closed gracefully

Posted: Mon Apr 18, 2016 4:59 pm
by Oleg
...libero recognize that the mail is not sent by a person...
Absolute.

Anyway I recommend you to put some pause between sending emails.
You can put pause several seconds (3-4 sec) before or after Send Email action within the loop

Re: Connection closed gracefully

Posted: Tue Apr 19, 2016 3:51 pm
by marcolobaido
Ok I'll start the task next month...i'll let you know ;)

Re: Connection closed gracefully

Posted: Fri Apr 22, 2016 5:43 pm
by shbigdon
How were you able to setup the gmail smtp (or what are your settings)?

I am using :

Host: smtp.gmail.com Port: 465 SSL/TLS: TLS (Authentication Required is checked along with a username and password are entered).

Thanks.