Script out database mail settings
Whilst building a new SQL Server I wanted to make sure that the database mail settings where the same as the previous servers. Even if I had all the information there is still the chance that I could make a mistake or a typo. Luckily I found this script that will script out the database mail settings, which you can then run to configure database mail consistently.
Follow this link for the script.