When you use Database Mail in SQL Server to send emails, you can specify a Database Mail profile to send the mail from.
In some cases you will be required to specify a profile when you send the email. This is the case when the user does not have a default private profile and there is no default public profile for the database.
You can create Database Mail profiles with T-SQL by executing the sysmail_add_profile_sp
stored procedure in the msdb
database.