SQL fix the global profile error in SQL server when sending mail
exec msdb.dbo.sysmail_update_principalprofile_sp @principal_name = 'guest', @profile_name = dbMail, @is_default = 1; exec msdb.dbo.sysmail_help_principalprofile_sp