using optparse to update sendmail script.