*This post is locked for comments
Announcements
*This post is locked for comments
Mark,
The @exclude_query_output=1 parameter in the Mail_Message trigger that has to be added for SL per the post from Carolyn K above. We have had a few sites contact support were their trigger is no longer working. They drop and re-create he trigger but forget to modify it.
The sites we have had report issues are those that have recently upgraded from SL 2011 using BP to a newer version of SL using WebApps, they have moved or updated their SQL server meaning they have had to re-setup DBMail, or they have a new exchange server (O365) and they are re-configuring things. We also have a handful of sites that lost their hosted servers and are having to restore and rebuild. Since DBMail integrates there are alot of areas where a site might drop and recreate this trigger and forget the additional modification is needed.
Hope this helps.
Carolyn
MSDSL Technical Support
Just had this issue pop up today unexpectedly, after years of successfully using the SQL Mail Trigger (since 2013). Had to add @exclude_query_output=1 to resolve the issue, as indicated above. No changes were made in SL or SQL that would have caused this, just started happening mid-day. Anyone have an idea as to what environmental issue may have required this adjustment?
Hi Carolyn:
Where is the mail_message trigger found for editing?
Thanks,
Mike
Hi Carolyn,
Thanks. Will try it out later.
Regards,
Teh
Hi Teh,
The Mail_Message trigger has a line like this:
EXEC @retval =msdb.dbo.sp_send_dbmail, @profile_name = 'Communicator', @recipients = @email
Modify the line to exclude the query output, so it looks like this:
EXEC @retval =msdb.dbo.sp_send_dbmail @exclude_query_output=1, @profile_name = 'Communicator', @recipients = @email
You need to modify the trigger wherever that line appears. It may be in more than one place.
Hi Carolyn,
Where should I add this parameter in?
Thanks.
Regards,
Teh
Hi Teh,
We had one other report of this error. The message you are seeing is just an information message coming from database mail. There is a flag you can add when executing the sp_send_dbmail command that will suppress this message. Add the @exclude_query_output=1 parameter to suppress the “Mail (ID: XX) queued” message. The email should still send OK, we are just suppressing the information message response coming back from database mail.
Community Member
136
Mohamed Amine Mahmoudi
102
Super User 2025 Season 1
REUser
8