Set cause when event is created.
Merge pull request #1 from tristanls/set-cause-on-send

Set cause when event is created.