Articles tagged with: .NET
Module: CEmailManager
Calling function:
public static bool SendDummyEmail()
{
return SendEmail(CGlobalParams.AdminEmail, "dummy", "Hi");
}
Worker function:
private static bool SendEmail(string p_strTo, string p_strSubject, string p_strBody)
{
try
{
MailMessage objMessage = new MailMessage();
string[] lstRecipient = p_strTo.Split(',');
foreach (string strTo in lstRecipient)
{
objMessage.To.Add(strTo);
}
objMessage.From = new MailAddress(CGlobalParams.SMTPUser, CGlobalParams.EmailSenderDisplay);
objMessage.Subject = p_strSubject;
objMessage.Body = p_s..........................
READ FULL ARTICLE
Problem:
While creating an installer for a .net web application, we usually follow a practice of adding a web deployment project and then adding the pre-compiled web output to a web setup project. An observation is that the precompiled web output contains project files, version control system files if any and debug symbols as well.
Solution:
Find a way to remove the files from precompiled web output. How: Open the web deployment project file and add following so that ItemGroup section looks like following. This example is considering SVN as a version control system.
..........................
READ FULL ARTICLE