Hi,
In E9 you had the ability to log field changes with a BAM and send out an email when a changes occurred. In E10 I’ve been able to setup the same type of logging but don’t see a clear way to trigger an email with the changes. Anybody out there run into the same thing?
Yes I noticed this, so I added a Custom Code block and wrote in C# an email program.
You'll need the using System.Net.Mail;
Here is code example:
try
{
MailMessage mail = new MailMessage();
SmtpClient SmtpServer = new SmtpClient("YourMailServerIPHere");
mail.From = new MailAddress("FromEmailGoesHere");
mail.To.Add("ToEmailGoesHere");
mail.Subject = "Test Mail";
mail.Body = "This is a test email. This is where the body of the email will go.";
SmtpServer.Port = 587;
//SmtpServer.Port = 995;
//SmtpServer.UseDefaultCredentials = true;
//SmtpServer.EnableSsl = true;
//Leaving above code commented out for possible testing in the future.
SmtpServer.Send(mail);
MessageBox.Show("mail Send");
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
Thanks for sharing, is there a way to include what the change log wrote?
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]
Sent: Tuesday, April 7, 2015 8:25 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Re: Logging & emailing changes in E10
Yes I noticed this, so I added a Custom Code block and wrote in C# an email program.
You'll need the using System.Net.Mail;
Here is code example:
try
{
MailMessage mail = new MailMessage();
SmtpClient SmtpServer = new SmtpClient("YourMailServerIPHere");
mail.From = new MailAddress("FromEmailGoesHere");
mail.To.Add("ToEmailGoesHere");
mail.Subject = "Test Mail";
mail.Body = "This is a test email. This is where the body of the email will go.";
SmtpServer.Port = 587;
//SmtpServer.Port = 995;
//SmtpServer.UseDefaultCredentials = true;
//SmtpServer.EnableSsl = true;
//Leaving above code commented out for possible testing in the future.
SmtpServer.Send(mail);
MessageBox.Show("mail Send");
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}