We have implemented OnSendMail notification subscriber which takes forms fields (Forms for Editors Form) and generates PDF. Then we attach that pdf to mail sent to user but document is attached only to mails of system administrators and user who filled in the form and should get pdf to print out and send back signed do not get attachment.
We are subscribing to Notifications.Frontend.OnSendMail and we are attaching file by item.EmailMessage.Attachments.Add(data).
Any idea why the web owners gets mail with attachemnt and user who filed in form gets only mail without attachment.
Thank you in advance!