Link to home
Start Free TrialLog in
Avatar of Michael Kochilla
Michael Kochilla

asked on

Sendmail based on record update

We have an ASP.NET C# project that uses DevExpress tools.
There is a ASPxTreeList that is used to display records for review. When a record is updated to "accept" we would like to trigger an email using sendmail. We need help in getting this email triggered from this DevEx tool.
Any help is greatly appreciated.
Avatar of Kimputer
Kimputer

Assuming the record is updated through some button or other event, add this code in that same piece of update code:

https://docs.microsoft.com/en-us/dotnet/api/system.net.mail.smtpclient.send?view=net-5.0

This assumes a sendmail server is installed and ready of course.
Avatar of Michael Kochilla

ASKER

We would also need to retrieve the sendTo email address from the updated record

Please show some current code. Especially your current "accept" routine would be useful.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.