SQL user test mail not working?

  • Hi,

    Mail session working fine with sysadmin user sa, etc

    after connect SQL user test mail seesion is not working.

    I try to add username as blow is not hope.

    exec msdb..sp_addrolemember @rolename = 'DatabaseMailUserRole'

    ,@membername = '<myuser>';

    an error occurred:Msg 15014, Level 16, State 1, Procedure sp_addrolemember, Line 36

    The role 'DatabaseMailUserRole' does not exist in the current database.

  • USE MSDB before running the above...

    use msdb;

    go

    exec msdb..sp_addrolemember @rolename = 'DatabaseMailUserRole'

    ,@membername = '<myuser>';

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply