[BUGFIX] Set sent to 1 if invitation mail was sent (refs #586)