Fix send with secure option enabled

Event was called twice and had problem with gmail server