Reputation: 35
Currently the end user has to select each employee, view his/her payslip, and click E-mail report. This report is handled by SSRS inside the .net application.
Upvotes: 0
Views: 743
Reputation: 29
Second the scheduled task/windows service. You can have a developer write a .net function that uses the System.Net.Mail.MailMessage class to generate an email. You can even have the developer create two alternate views for the email, one that is a prettified html version and the other that is a plaintext version. That way if the receiver cannot view html on their device, they can still see the necessary data.
Just take all of the SQL data and programmatically insert it into an html file with placeholder text for your variables.
Then, using your smtp credentials, send the email out to all of the employees.
Upvotes: 0
Reputation: 2279
One approach is the sheduled task. You could write a console application that 1st checks end of month every time it runs, loop through the employee and generate report. Now you can build a html report if you want and send an email with the Mail object IsBodyHtml= True
mail message html property and tge body will be html
string which u will need to construct or as pdf attachment of the report generated by ssrs.
There are many approaches.... Windows Service is probably my fav.
Upvotes: 1