You can use the same code as FRII’s team to monitor the delivery time of your email.
After the launch of our new MagicMail environment last year, in order to be completely on top of any issues that may arise, we’ve steadily added more monitoring for that system. One monitoring check that required a bit of scripting is checking the time it takes for end-to-end delivery on our system.
First of all, to view the code for this system, go here: https://gist.github.com/FRII/9748818
I won’t explain every line of those files, but I’ll be going over the general concepts of each script.