Revert "Fix test according to changes in smtp mailer."

This reverts commit dbccc525c2b0302d4d111b6f45063d39a5f0c63e.