I have a code sending email with attachment based email template , the issue is that a copy of the email is sent to the email specified as sender , how can I stop this ?
I have a code sending email with attachment based email template , the issue is that a copy of the email is sent to the email specified as sender , how can I stop this ?
Hi Maram,
Is the recipient a shared email box or a natural person? Is it an internal or external person? Could it be a setting on your Exchange Server or Office 365?
Hi ergun sahin ,
no customization on sysEmailDistributor
But I think ( but not sure just a guessing) that there is a property on the system level makes email distributor send a copy to sender or may be at email template I check different parts but until now I cannot find anything
Hi Maram,
I can't see anything that would require sending it twice in this code.
Maybe a customization caused this. Can you check the SysOutgoingEmailTable (or data) table for copied records.
Do you have a workflow in the template.
You can try with othter templates or without any template.
You can insert data with other status.
You can look sysEmailDistributor class for any customization
its select not while select so even if there is two records only one record will be processed .
i was talking about this.
Hi Jay,
I do not have any join query in my code
Hi Maram,
Can you check the joins used in code. Either it's getting 2 records because 2 conditions for emailId field.
Hi Ludwig ,
I have custom report convert to pdf and and I send it to worker . This part works correctly but the issue is that the sender also receives a copy from the same email.
Environment is D365FO
Hi André ,
_emailAddr contains the email of the user linked with certain worker and yes I am sure that it contains only one email . if the method called more than one time I expect that the receiver will receive multiples email not the email sent to different receivers
Hi Maram,
What is the value provided in the variable '_emailAddr'? Is this containing one or multiple addresses? Did you check using the debugger how many times this method is being executed?
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,269 Super User 2024 Season 2
Martin Dráb 230,198 Most Valuable Professional
nmaenpaa 101,156