Click here to Skip to main content
16,003,873 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I want to send mail from one id to many ids in bulk order,when i use my code in client machine it dosent work,when it comes to one to one mail id it shows failure in sending mail,

[Edit]
The question that the OP originally asked was:
"i want to calculate monthly salary for an employee.the salary should include the reduction if the employee takes leave.i want to know the coding to calculate the salary,which should also include the extra allowance?"
Posted
Updated 27-Jun-11 21:37pm
v3
Comments
Ankur\m/ 27-Jun-11 7:37am    
The very first question that comes to my mind is - what have you tried?
This is a community where people participate voluntarily. We do not write code here but help people with issues in writing code (and of course a lot more). Show us what exactly you have problem with and we will be glad to help you.
Thank you for understanding.
Abhinav S 27-Jun-11 7:44am    
Tried anything?
Pete O'Hanlon 28-Jun-11 3:35am    
Would you please not completely change your question, because there are now answers that make no sense to the question that people can see.

It's just a few queries and a little code away. Go get it. If you are stuck somewhere, post a question with relevant code.
 
Share this answer
 
Comments
Pete O'Hanlon 27-Jun-11 10:35am    
The only way to get the logic is to actually work out, with your end users, what your full requirements are. We can't do this for you, so our solution is not likely to be 100% of what you are trying to achieve.
You have the basics of your requirements in place here, but you are going to have to flesh it out some more. For instance, is there any form of taxation that needs to be applied at source? Is the employee being paid on a daily/hourly rate? What about if they work overtime (will double time/time and a half count)?

You need to talk to your users, and find out exactly what information they use on a day to day basis - this is the information that you will use to perform the calculations. You'll also need to consider information, such as where the data you will be using is stored, how it's retrieved, etc.

Good luck.
 
Share this answer
 
Comments
Peter_in_2780 28-Jun-11 1:24am    
You answered, so he completely rewrote the question.... Have a look.
Here's the issues:

1 - sending email has NOTHING to do with ASP.NET
2 - if you tried something, why not post some code ?
3 - if it works on your machine and not on the client machine, then ask yourself what is different ? Are you using the same mail server ? Is it valid on the client's server ?
 
Share this answer
 
Comments
Peter_in_2780 28-Jun-11 1:23am    
Go back and look at the question versions. He's changed the question completely... (I only found it because I had a WTF at Pete's answer.
smithuvalsalan 28-Jun-11 1:33am    
Button_click()
{
System.Net.Mail.MailMessage MyMailMessage = new System.Net.Mail.MailMessage(TextBox1.Text,TextBox2.Text,TextBox3.Text, "");
MyMailMessage.IsBodyHtml = false;
MyMailMessage.Body = TextBox4.Text ;

System.Net.NetworkCredential mailAuthentication = new System.Net.NetworkCredential(TextBox1.Text, "password");


System.Net.Mail.SmtpClient mailClient = new System.Net.Mail.SmtpClient("smtp.gmail.com", 587);



mailClient.EnableSsl = true;
mailClient.UseDefaultCredentials = false;
mailClient.Credentials = mailAuthentication;
mailClient.Send(MyMailMessage);
}

this is the code,

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