mail function using html
changes in the login widget.