I was just about to implement something similar myself. Before I take the time to dive into your code, it would be very helpful if you could provide some documentation and usage examples.
How does this relate to - http://arduino.cc/forum/index.php/topic,51439.msg490973.html#msg490973 -
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16