Fix warnings

Deprecated function call and deprecated parameter. Warnings with debug mode on when you click "unsubscribe" from an email.