I got a very strange error in Database Mail, which used to work, sending out emails with attachments (pdf).
The error comes from the sp_send_dbmail procedure. The error is "Attachment transfer failed. Please see event log for more information". I went to Windows Application Event Log and got the following error info.
Severity: 16 Error:229, OS: 229 [Microsoft][SQL Server Native Client 11.0][SQL Server]The INSERT permission was denied on the object 'sysmail_attachments_transfer', database 'msdb', schema 'dbo'.
The Windows login I used to run the procedure is the sql sysadmin. It is also the domain admin and server local admin.
Any suggestions?
Thanks.