Hi, we'd like to send mails from Engine using the standard procedure in SQL ('sp_send_dbmail') that was previously configured and it is currently used from Import Master
We are using the command SQLExecuteStoredProcedure(sqlConnection, Proc, 0) and we don't know how to define the parameters requested by this procedure (recipient, body, etc.)
If we put only the name of the procedure (in the variable 'Proc') we get the error 'No global profile is configured. Specify a profile name in the @profile_name parameter'. We have tried to specify the parameters just after the procedure name but then we get the error 'Could not find stored procedure .....'
Is there anyone with some experience on this matter?
Thanks in advance,
Kind Regards,