When you use the sp_send_dbmail
stored procedure to send emails in SQL Server, you would typically include the @profile_name
argument to specify which profile to use.
However, if you omit this argument, sp_send_dbmail
will use the default private profile for the current user. If the user does not have a default private profile, sp_send_dbmail
will use the default public profile for the msdb
database.
If none of these are configured, you’ll get the following error:
Continue reading