Skip to main content

All,
From our thinkwise application we send email via SQl msdb. This works fine for years, but now I deployed a test application and emails with an attachment will not be sent. It’s a rights issue, the attachment is on another share, so not on the SQL server. If I start the application via the SF it works fine. If I start the application via IAM (not via Indicium so in the ini file RDBMS = SQLSERVER)
an email without attachment is sent, an email with an attachment will not be sent.

I added logging in my send mail script.
EXEC xp_fileexist @FilePath;
Die geeft 0 terug, wat betekent dat de Thinkwise app de bijlage NIET ziet.

De SQL USER function heb ik ook in de logging gezet en die geeft terug: [domain]\srv_indicium
The SUSER_NAME() is diezelfde gebruiker.
En de ORIGINAL_LOGIN() is mijn eigen account.
Zowel mijn eigen account als de srv_indicium hebben rechten op de share waar de bestanden staan.

Als ik in de verkenner het pad met het bestand kopieert onder mijn eigen login, dus dat is ook de login onder welke naam de applicatie wordt gestart, wordt het bestand gewoon geopend en krijg ik een preview te zien in de windows verkenner.

De user waar de SQL instance onder draait heet: srv_sql-02-thinkwise en ook die heeft rechten op de folder. 
Heeft iemand een idee waarom SQL die mail niet wil versturen en hij niet bij de bijlage kan?

 

Be the first to reply!