clean up scheduling

Changed SMTPAPI to SMTP API
Fixed a mispelling
added headers to code blocks to match other code blocks in docs