Send email

Hi All,

I need to notify a user(by sending an email) that a new data/record has been inserted into table. What’s the best approach/solution to do it.

Thanks much!

You can setup Email Parameters for SMTP server and use System.Net.Mail Class to custom the email and send it out.

Please follow the below links for more details

https://community.dynamics.com/ax/b/axaptavsme/archive/2013/05/20/sending-email-via-smtp-using-x-and-net-framework-in-dynamics-ax.aspx#.UfK5l43CZ8E

http://waikeatng.blogspot.com/2010/06/sending-emails-from-dynamics-ax.html

Thank you Khalid!

So, let me to describe the scenario:

Once a new record is entered into table thru form the notification by email will go the user. I’m assuming, I need to create class(let’s say SendEmail) and call this class in update()/or insert() methods in table level or it needs to be done in the form. Any suggestions?

Thanks

I would suggest to use the class on the data source rather than form as you wanted to track the information which has been newly added to the data source.

Thanks much!