Click here to Skip to main content
15,886,806 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi Guys,

I have one web application in asp.net c# and windows application in c#.

This application is basically created for Exam Centers.

Web Application is used to Create Candidates, Certificates and ExamSessions.

Where as Windows application is used by the Candidate to write the Exam.

My turn is to create windows services to send email, whenever ExamSession is created.

What I have tried:

I have to use the WebApplication Business logic and send Email.

I haven't created windows services.

I searched on Google. but.. i'm not clear.

Please guys help me.

Thanks
Posted
Updated 19-Dec-16 10:03am
Comments
Dave Kreskowiak 19-Dec-16 14:30pm    
Not clear on what? Writing a Windows Service or sending an email? If you already have code that sends an email, that doesn't change. The application type has no impact on the code that sends an email.

If you're asking about writing a Windows Service, Google for "C# Windows Service Tutorial".
abdul subhan mohammed 19-Dec-16 15:04pm    
The webapplication is currently running on WebServer and i have to detect when examsession is created, as soon as its created i have to send the email to the center and candidate, using windows services.
[no name] 19-Dec-16 15:20pm    
Okay..... And? You still haven't asked a question or described any kind of a problem.

1 solution

You'll want to use the SMTPClient class. Documentation and example here, SmtpClient Class (System.Net.Mail)[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900