Sending mail via API to Vault ADMS Server or Enterprise AddOdd (VAO)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
Has anyone experience in sending email from VAULT API?
I am making a Custom Job for the Vault Job Procceser and want to send out an email on certain conditions.
In the docs for VAO i can see that I can send email notifications on Lifecycle transitions.
I would like to do it via API when certain condotions are true and be able to make a custom body in the email being send.
My ADMS has SMTP configured and is configured to send out notification. Is tested and works.
I found this:
using VDF = Autodesk.DataManagement.Client.Framework;
public JobOutcome Execute(IJobProcessorServices context, IJob job)
{
string[] attacments = null;
byte[][] fileContents = null;
context.Connection.WebServiceManager.PackageService.SendEmail("sender-email", "receiver-email", "From Costum Job", "News", attacments, fileContents);
}
Get this exception:
StackTrace = " at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)\r\n
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)\r\n
at Autodesk.Connectivity.WebServices.IPackageServ...