Error sending e-mail <subj>: error connecting to server

I have several scripts that use the same code to send e-mail. Some work fine, and some report the error in subject of this thread.
Does anyone have any idea why?

From script that successfully sends an e-mail:
/tool e-mail send body=“$wlist” subject=“Wireless/Hotspot” to=“hidden@klima-kontakt.hr” server=“85.114.34.42” from=“$[/system identity get name]@klima-kontakt.hr

From script that unsuccessfully sends an e-mail:
/tool e-mail send body=“$actusrlist” subject=“Active Users” to=“hidden@klima-kontakt.hr” server=“85.114.34.42” from=“$[/system identity get name]@klima-kontakt.hr

First i figured that a lot of messages is being sent so i changed the IP of smtp to our internal mail server but then none of the scripts work.

Also there are no errors in scripts (up to the point where e-mail is sent - scripts work (checked with logging after every line). So far it looks like a random error.

Anyone have any idea why this would happen?

tplecko,
if you are using 5.0rc7 version, then e-mail sending problem will be solved at 5.0rc8 version.
The problem is related to ipv4 address at /tool e-mail.

I am using 5.0rc7.
Thanks

Yes, than problem should be fixed in the upcoming RouterOS release.