Guys, I guess I found the problem.
In the config file for the Email library I had to define the parameter "smtp_timeout" to something significantly higher than the default 5 seconds. I chose 30 seconds.
It seems that my script, that sends a batch of 10 mails every 5 minutes crashed (broken pipe error) because the server lost the smtp connection during the sending process.