email troubleshooting php

added sudo to the email script