Hi, i am developing a simple web application for fault reporting. Users log into the system and report a fault which is then added to a database. I want to be able to email the system administrator a log file containing the information which has been added to the database. Any help on what i need to look at would be much appreciated.thanks
.netidiot -2
Newbie Poster
Recommended Answers
Jump to PostHi,
Here is the way. u can send mail to admin, while entering the data into DB
using System.Net.Mail; MailMessage msgMail = null; MailAddress objMAddTo,objMAddFrom = null; SmtpClient objSMTP = new SmtpClient(); objSMTP.Host = ""; // set your SMTP mail server.. domainname or the IP objMAddTo …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.