Resolve "Can't send email when the gmail was left open and the pc went to sleep for a while" Closes #16 See merge request !27