How to send the email/notification when the documents/batch get to Verification Stage


I would like to send an email or notification when a document/batch hit the Verification Stage


In the project-> Project Properties-> Advance workflow->create a custom script stage and give it a name such as EmailNotificationScript and place it right before the Verification stage



Inside this script, use this C# script, (if you are using a Gmail account to send the notification)

using System;
using System.IO;
using System.Net;
using System.Net.Mail;
using System.Net.Mime;

MailMessage message = new MailMessage();
SmtpClient smtp = new SmtpClient();
message.From = new MailAddress("");
message.To.Add(new MailAddress("sendtoemailaddress"));
message.Subject = "Test";
message.IsBodyHtml = true; //to make message body as html
message.Body = "Verification Stage";
smtp.Port = 587;
smtp.Host = ""; //for gmail host
smtp.EnableSsl = true;
smtp.UseDefaultCredentials = false;
smtp.Credentials = new NetworkCredential("", "mypassword");
smtp.DeliveryMethod = SmtpDeliveryMethod.Network;






Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request



Please sign in to leave a comment.