I want to write a bash script to:

1. Send an email from localhost to an external gmail account. (gmail then automatically forwards the message back to a pop account on the same server.

2. Script waits 3 minutes then checks to see if the email arrived, and if not, it sends an email to administrator.

Can anyone point me in the right direction? My knowledge of writing scripts is limited and I'm hoping someone can help.

Thanks so much,

Sallyanne