A new service does just that:
…software called Death Switches that would detect a person’s demise and send prewritten, postmortem emails to next of kin, sharing passwords. But it didn’t take long, Eagleman goes on, for people to realize they could communicate more than passwords. They could say good-bye or get in the last word of an argument. As it turns out, Eagleman wasn’t just writing fiction. In 2006 he launched a real-life startup, Deathswitch, to provide the service. Subscribers are prompted periodically via email to make sure they’re still alive. When they fail to respond, Deathswitch starts firing off their predrafted notes to loved ones. The company now has thousands of users and effectively runs itself. Among the perks of a premium Deathswitch account is the ability to schedule emails for delivery far in the future: to wish your wife a happy 50th wedding anniversary, for example, 30 years after you left her a widow.