Adding email attachment from Documents
Posted: Tue Apr 30, 2019 1:25 pm
Specifically talking about the Purchase Order email here but I guess can be equally applied to Sales Order emails.
Looking at the standard plugin Purchase Order Custom Email, I want to tweak it to attach anything which has been added to the Documents tab.
I am assuming I would need to attach it prior to the line
but I can't see any property or method used to add an additional attachment other than the actual purchase order.
What would be the line(s) used to attach something else?
Seeing as the original plugin is in VB, I guess that language is preferable but I don't mind if it's in C#.
This client is on version 7.0.175.
Looking at the standard plugin Purchase Order Custom Email, I want to tweak it to attach anything which has been added to the Documents tab.
I am assuming I would need to attach it prior to the line
- Code: Select all
PurchaseOrderForm.POEmail(reportDefinition.Report, MyEmailOptionsForm.EmailFrom, MyEmailOptionsForm.EmailTo, MyEmailOptionsForm.Subject, MyEmailOptionsForm.CC, MyEmailOptionsForm.BCC, MyEmailOptionsForm.Message, If(MyEmailOptionsForm.NameToGiveAttachment.Trim.Length = 0, PurchaseOrderForm.PurchaseOrder.OrderNo, MyEmailOptionsForm.NameToGiveAttachment), lEM_Main_RecID, MyEmailOptionsForm.RequestReadReceipt, MyEmailOptionsForm.ExportReportFormat)
but I can't see any property or method used to add an additional attachment other than the actual purchase order.
What would be the line(s) used to attach something else?
Seeing as the original plugin is in VB, I guess that language is preferable but I don't mind if it's in C#.
This client is on version 7.0.175.