April 4, 2016 at 1:37 pm
Hi,
I have a insert trigger, and the purpose of the trigger is to send email to different dept for for new registrations....but sometimes, it's sending duplicate emails within a min apart...
Any idea, why this happens?
I saw this post.....http://stackoverflow.com/questions/15521646/stored-procedure-using-sp-send-dbmail-sending-duplicate-emails-to-all-recipients
"The solution has turned out to be reducing the number of Account Retry Account on the server to 0 (within the Database Mail Configuration Wizard)."
Any idea, where to set this...I checked the Database Mail Configuration Wizard and I do not see an opption for Account Retry Account on the server to 0.
plz help
Regards,
SQLisAwe5oMe.
April 4, 2016 at 2:05 pm
i've seen the same on my side, with the default of one retry; an email with to: 'goodemail@somedomain.com;bademaul@somedomain.com' results in goodemail getting two emails.
first thing to do is review who gets the mail, because someone is getting bounced(maybe a relay error?)
Lowell
April 4, 2016 at 2:09 pm
Thanks Lowell, I actually just found it now.
I'm not sure if this is the actual fix.
Anyway, I'll monitor and update.
Thanks again.
Regards,
SQLisAwe5oMe.
April 5, 2016 at 12:52 pm
Users still getting duplicate emails.....not for every alert, but every now and then.
Regards,
SQLisAwe5oMe.
April 5, 2016 at 1:11 pm
My first thought was the trigger may be written as if only one record is being handled. Could that be the case as triggers handle many records at once.
April 5, 2016 at 7:23 pm
Hi djj,
I am attaching the create script for the trigger.
Also, I found this old post....but no resolution it seems.
http://www.sqlservercentral.com/Forums/Topic269796-146-1.aspx
Anyone has any clue where to look at.
Regards,
SQLisAwe5oMe.
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply