I am trying to get SQL database mail to send emails using a new db mail profile and account. The new db mail profile and account that I am creating uses the exact same server name as the old db mail profiles and accounts on our server. Whenever I execute the command:
EXEC msdb.dbo.sp_send_dbmail
@profile_name = 'OLD PROFILE NAME',
@recipients = 'myEmail@email.com',
@subject = 'Test Email',
@body = '<html><body><p>test content test content test content test content test content</p></body></html>',
@body_format = 'HTML';
And email sends with no issues. However whenever I execute the command
EXEC msdb.dbo.sp_send_dbmail
@profile_name = 'NEW PROFILE NAME',
@recipients = 'myEmail@email.com',
@subject = 'Test Email',
@body = '<html><body><p>test content test content test content test content test content</p></body></html>',
@body_format = 'HTML';
I don't get an email. Whats even weirder is that I can look at the sent items using a msdb command and its saying that the emails that I am not getting are being sent??
Any thoughts or help would be greatly appreciated