Requires XF v2.1 or newer.
Fixed issue with duplicate email logs.
Added code to enter logs from emails sent using the send function.