Fix warnings

Deprecated function call and deprecated parameter. Warnings with debug mode on when you click "unsubscribe" from an email.
Merge pull request #24 from mattsnowboard/patch-3

Fix warnings