Revert "mail() funkcia fix"

This reverts commit 3f3072478e6c8993debd404d9c9dc130b97089c1.
Revert "Revert "mail() funkcia fix""

This reverts commit 89b0708204b3f748af6e8c95b84cc066d98c7463.