Connection closed gracefully

Discuss RoboTask here
marcolobaido
Posts: 70
Joined: Thu Jul 02, 2015 3:54 pm

Connection closed gracefully

Post 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.
Attachments
Cattura.JPG
Cattura.JPG (23.88 KiB) Viewed 44455 times
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Connection closed gracefully

Post by Oleg »

This means that the server has closed the connection.
Some public SMTP servers have limitation of the amount of messages per day.
Oleg Yershov
marcolobaido
Posts: 70
Joined: Thu Jul 02, 2015 3:54 pm

Re: Connection closed gracefully

Post by marcolobaido »

But if I write those mails manually I succeed to send them...
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Connection closed gracefully

Post 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.
Oleg Yershov
marcolobaido
Posts: 70
Joined: Thu Jul 02, 2015 3:54 pm

Re: Connection closed gracefully

Post 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.
Attachments
Cattura.JPG
Cattura.JPG (45.03 KiB) Viewed 44442 times
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Connection closed gracefully

Post 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?
Oleg Yershov
marcolobaido
Posts: 70
Joined: Thu Jul 02, 2015 3:54 pm

Re: Connection closed gracefully

Post 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.
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Connection closed gracefully

Post 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
Oleg Yershov
marcolobaido
Posts: 70
Joined: Thu Jul 02, 2015 3:54 pm

Re: Connection closed gracefully

Post by marcolobaido »

Ok I'll start the task next month...i'll let you know ;)
shbigdon
Posts: 1
Joined: Fri Apr 22, 2016 5:24 pm

Re: Connection closed gracefully

Post 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.
Post Reply