Use the current port as the API activation e-mail port

Closes #558.