I am wanting to create ONE email for each row in my datatable where the month = current month. My code was working until I added in the conditional statement for manager name. If I comment that out and execute, it works as expected. How should I add the conditional for manager name to set the subject and body so that only ONE emaill is created?
static void CreateEmails ()
Application oApp = new Application();
foreach (DataRow r in [login to view URL])
if (r["month"].ToString() != [login to view URL]("MMMM"))
if (r["manager"].ToString() == "James")
subject = subjectJames;
body = bodyJames;
subject = subjectStandard;
body = bodyStandard;
MailItem oMsg = (MailItem)[login to view URL]([login to view URL]);
[login to view URL] = body;
[login to view URL] = subject;
var emailAddress = [login to view URL]<string>("Email").Split(';');
foreach (var email in emailAddress)
[login to view URL](email);
[login to view URL]();
[login to view URL]();
15 freelance font une offre moyenne de $26 pour ce travail
Hi I'm c# developer with 12 years experience on .net framework and related tools, I'll fix your code to send a correct email. please send me a message to discuss more about it.
Hi There, I understand the problem. Once of the reason why your condition is failing is data. You are comparing string with no case sensitiveness. Here is the update code, see if helps or connect over chat to discu Plus
Hello Dear, I have 4+ Year of experience and have complete your [login to view URL] we can set your manager level subject And body. looking forward working with you. Thanks
Hi, I have read the project details and attached Code very carefully and I think I have understood that what is the problem. I have experience in C# Programming and I have completed many C#projects throughout my caree Plus
This is very easy fix with my experience I am a Dedicated Senior .Net Developer and Database Administrator with 20 years of experience in Web/ Windows and Android Developments,Administration, Project Management Plus
I will solve this issue ASAP. Yes sir I read the instructions. I am best for the job. Already working on similar projects. Please contact me on chat.
I am .NET developer. I have good hands-on experience more than 4 yrs in asp.net web and windows application developement. I have my own workstation setup with Visual Studio 2017 and MS SQl server. So we will just disc Plus
Hi, i am excited to work on this project. i will finish this work in 1 day. i am web developer and having 3 years of experience. Please give me an opportunity. thanks.
Dear sir, thanking to you.i read your instructions this project.i have an experience in this field more than two [login to view URL] i think i am fit for your job.
I have 11-year work experience in asp.net(Web and Windows Application). I am hard-working and responsible person. I have good knowledge of Working in professional environment. I have confidence in my web abilities, Plus
Just to introduce myself, I am a .NET full stack developer with 9.5 years of development experience in an MNC.
I am a project leader in VietNam with more 3 years experiences. My Skills: - JAVA, Spring - .NET, ASP.NET - Xamarin - Database - ERP Inbox me!