Email sales order without attachment
If a certain scenario is met during sales order entry and/or saving I want to send an email. No need for any attachment. It's just an in-house email to another department with relevant subject & body.
Is it possible to use
I have tried and it seems to require SalesOrderReport, nameToGiveAttachment et al. I really just need to populate EmailTo, EmailFrom, Subject, Body.
The other option might be to create an EmailLog and just use
but I'm having trouble creating an email log item via
The above line generates an error "No overload for method 'CreateCollectionItem' takes 1 arguments.
What do you suggest might be the best way to generate an email - ensuring it is reflected in the email log/shows in the emailed badge?
Is it possible to use
- Code: Select all
salesOrder.Email
I have tried and it seems to require SalesOrderReport, nameToGiveAttachment et al. I really just need to populate EmailTo, EmailFrom, Subject, Body.
The other option might be to create an EmailLog and just use
- Code: Select all
SalesOrder.EmailLogCollection.Add(emailLog)
but I'm having trouble creating an email log item via
- Code: Select all
JiwaFinancials.Jiwa.JiwaSales.SalesOrder.EmailLog emailLog = Manager.CollectionItemFactory.CreateCollectionItem<JiwaFinancials.Jiwa.JiwaSales.SalesOrder.EmailLog>(null);
The above line generates an error "No overload for method 'CreateCollectionItem' takes 1 arguments.
What do you suggest might be the best way to generate an email - ensuring it is reflected in the email log/shows in the emailed badge?