I'm stuck on a problem using the DB Send mail in SS2005.==== Some pre-information, see further down for main question ====Our ERP front end software updates a field in a table when a part is completed.. I've setup a trigger to send an email when this table is updated with critera I've set (When the part is complete, send some emails..) This worked 100% fine in SS 2000.I've set up the mail profile and account, and I am able to send emails using management studio under the ERP's SYSADM login (the ERP sets up its rights).. I am able to login to management studio under any login, and also send mail properly. INFACT - I've just mimicked what the ERP system does, I've ran an update statement on the table to "complete" the part, and the email runs fine under any login.However.. when I log into the ERP system as any login besides SYSADM.. I get this error when attempting to complete the part, EXECUTE permission denied on object 'sp_send_dbmail', database 'msdb', schema 'dbo'.I am able to get "Details" on the error, that gives me this - select SYSDATETIME from APPLICATION_GLOBALinto :dtCurrentTimeERROR Number: 229Microsoft SQL Server: No additional information available. Backend specific error.
===== Above is pre-information ====Those errors are from the ERP front end when attempting to run the update statement (which I can run in Studio). I feel my error is coming from some security settings not set up right, I need help figuring out *where* these are.I've manually checked security settings for the users to match this SYSADM account to my SHOP account. SYSADM details - Security -> LoginsServer Roles : sysadmin, security adminUser mapping : msdb - SYSADM (user) - dbo (default schema)Click on msdb for roles: DatabaseMailUserRole, public
SHOP details - Security -> LoginsServer Roles : sysadmin, security adminUser mapping : msdb - SHOP(user) - DatabaseMailUserRole (default schema.. I've tried dbo here also)Click on msdb for roles: DatabaseMailUserRole, public, db_owner
SYSADM Details - Databases > msdb > security > usersDefault Schema: dboOwned Schemas: noneDatabase Role Membership: DatabaseMailUserRoleNo Securables or Extended Properties..
SHOP Details - Databases > msdb > security > usersDefault Schema: DatabaseMailUserRoleOwned Schemas: db_owner (not checked, but filled box)Database Role Membership: DatabaseMailUserRole, db_ownerNo Securables or Extended Properties..
DBO Schema - Databases > msdb > security > SchemasGeneral, schema owner: dboPermissions, users or roles: DatabaeMailUserRole-> Explicit permissions = all checked
It would seem to me that SHOP has permissions, infact even more permissions than SYSADM.. why am I getting this error when trying to send mail as SHOP?