You create a non-administrator Windows account that is a member of multiple Windows groups. These Windows groups have the same permission setting. In Microsoft SQL Server 2005 or in Microsoft SQL Server 2008, you add these Windows groups as SQL Server logins. You configure Database Mail accounts and profiles by using these SQL Server logins. When you use Database Mail to send an e-mail, you receive Error 14607 in the following scenarios:
Scenario 1You create a private Database Mail profile that uses the Windows account as the Simple Mail Transfer Protocol (SMTP) account. You configure the private profile for one of the Windows groups that was not first added as a SQL Server login. When you send an e-mail by using the profile, you receive the following error message:
Msg 14607, Level 16, State 1, Procedure sp_send_dbmail, Line 136
profile name is not valid
Scenario 2You create two private Database Mail profiles that use the Windows account as the SMTP account. You configure the private profile for one of the Windows groups. When you send an e-mail by using the nondefault instance in the two private profiles, you receive the following error message:
Msg 14607, Level 16, State 1, Procedure sp_send_dbmail, Line 136
profile name is not valid
Scenario 3You create a private Database Mail profile that uses the Windows account as the SMTP account. You configure the private profile for one of the Windows groups. Then, you explicitly add the Windows account as a SQL Server login. When you send an e-mail by using the profile, you receive the following error message:
Msg 515, Level 16, State 2, Procedure sp_validate_user, Line 19
Cannot insert the value NULL into column 'permission path', table '@temp'; column does not allow nulls. INSERT fails.
The statement has been terminated.
Msg 14607, Level 16, State 1, Procedure sp_send_dbmail, Line 136
profile name is not valid