I'm having a issue with my database mail not showing my new profile I created. I'm executing this:
Execute msdb.dbo.sysmail_add_account_sp
@account_name = 'email here',
@email_address = 'email here' ,
@display_name = 'White Box Gaming' ,
@replyto_address = 'email here' ,
@description = 'Profile used to send mail' ,
@mailserver_name = 'smtp.gmail.com',
@mailserver_type = 'SMTP',
@port = 587,
@username = 'email here',
@password = 'password',
@enable_ssl = 0
No errors but when I try to view it:
select *
from msdb.dbo.sysmail_profile p
join msdb.dbo.sysmail_profileaccount pa on p.profile_id = pa.profile_id
join msdb.dbo.sysmail_account a on pa.account_id = a.account_id
join msdb.dbo.sysmail_server s on a.account_id = s.account_id
New profile does not appear. What did I miss?