Thanks Igor, it works except the body of the message.
If I use this format the body is empty, "Plesk event" text is not included:
mywegmansconnect
echo "Plesk event" | mail -s "Alert: Plesk user logged in" tech@mypleskdomain
In addition I've two questions:
- Is possible to change the "from email"?
Now I receive the email from psa user ("psaadm@mypleskdomain") but it doesn't exist.
Is not a priority because I can activate an alias for psaadm@ but I'd like to use another email.
- How can I insert a message in the email including the username that logged in to Plesk?
For example "The user 'mycustomer1' logged in to Plesk".
Thanks.