Finally I managed to make it work as well. It is possible to send contests of file with sendmail but for some reason file I placed at cron (sth.log) was disabled. I could open it do not know why even the script did everything correct and put some data in this file. I had to change a name of this file to this one (sth.*) without log at the end.
The most important thing is working script but if anyone knows the reason I could not open file let me know, please.
Hi how you were able to make it work?
I have
SMTP server problem Connection refused message...
My settings:
hostname = smtp.gmail.com:25
starttls = required
identity = myname@gmail.com
username = myname
password = mypassword
starttls = enabled
Thanks.