Arduino email notification?

Is it possible to get an arduino to send a custom email when two contacts on the arduino are closed? (Digital pin to ground, etc) I would need it to be able to send 4 separate emails, each sent when it's own set of contacts are closed. Anything helps. Thanks.

This example sketch will send email in some situations, depending on your ISP.
http://playground.arduino.cc/Code/Email
You would need to modify it slightly to get it to send 4 emails.