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

Questions:

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

Solution:

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

mceclip0.png

 

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("mygmailaddress@gmail.com");
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 = "smtp.gmail.com"; //for gmail host
smtp.EnableSsl = true;
smtp.UseDefaultCredentials = false;
smtp.Credentials = new NetworkCredential("mygmailaddress@gmail.com", "mypassword");
smtp.DeliveryMethod = SmtpDeliveryMethod.Network;
smtp.Send(message);

 

 

 

 

 

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.