smpt configuration for gmail + minor fixes