Two men who sent millions of unsolicited pornographic e-mails have been sentenced to more than five years in federal prison as part of the first prosecution under a federal anti-spam law, U.S. Department of Justice officials said. The men purchased e-mail addresses and sent the owners of those addresses links to pornographic Web sites, prosecutors said.