|
There is my scenario:
I have SQL Server Standard. I made a trigger that everytime I insert new data on my table, sends a mail to my outlook account. There is no problem using Management studio
I did dynamic data web site (Visual studio 2008) where users can insert/delete/update different tables using internet esplorer but, when they try to insert some data there is no way to do that. There is no problem inserting data on other tables wich do not have any trigger.
The reason why they can't insert data is due that trigger can't send mail and I receive the following error message:
SQL blocked the access to dbo.sp_send_mail of the component 'Database Mail XPs' because this component is disabled.
I did sp_configure and fixed the value of 'Database Mail XPs' to 1 but it stills not working and I receive the same error.
I gave execute, insert, select, update, alter, delete and connect permissions on msdb and on my db to users ASPNET and GUEST.
Finally I changed the connection string of my web and connected as sa but it stills not working.
If somebody knows or have some new idea I will thank.
See you.
|