Click here to Skip to main content
15,889,867 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi!
I have 500 mails and I want that every minute , 100 emails are sent. Please give me some solutions in C# winform application. Thanks a lot
Posted
Comments
OriginalGriff 12-Jun-11 10:10am    
Have you actually tried anything yourself?
Have you made sure my name isn't on your list?
Kim Togo 12-Jun-11 10:16am    
Are you using a Smart host or are you sending the emails directly from your program?
Sergey Alexandrovich Kryukov 12-Jun-11 15:49pm    
Spam? :-)
--SA

There's tons of examples all over the web. This just shows you haven't even tried to search for any. Google for "C# send email" and you'll come up with hundreds of millions of examples.

It doesn't matter if you're doing this from a WinForms app or a service or an ASP.NET app. The code is exactly the same.

Now, your bigger problem is that your ISP may not let you send that many emails all at once. They may think your a spammer and cut your account off. You'll have to check with them to find out what your limits are.
 
Share this answer
 
Comments
thatraja 12-Jun-11 11:00am    
Agree(last 2 lines), 5!
Sergey Alexandrovich Kryukov 12-Jun-11 15:52pm    
OP could be a spammer, how do you know? A vote 4, because...
Well, the problem with throughput it more principle. Guaranteed response time is theoretically impossible.
Please see my answer.
--SA
[no name] 12-Jun-11 19:04pm    
Yes "my god" OP is a spammer sure. Not everybody is keen on getting points…like...u
Dave Kreskowiak 12-Jun-11 19:49pm    
I don't give a rats ass about the points.
Sergey Alexandrovich Kryukov 18-Jun-11 1:58am    
Dave, for your information: account of "xxxxxxxy" is now disabled, for a good reason. I did not even report on him, someone else probably did.
--SA
Nothing can guarantee you any certain predefined execution time, especially with networking. This is not a real-time system, and Internet makes guaranteed response theoretically impossible.

See http://en.wikipedia.org/wiki/Real-time_operating_system[^], http://en.wikipedia.org/wiki/Real-time_Transport_Protocol[^].

—SA
 
Share this answer
 
v2
Comments
Dave Kreskowiak 12-Jun-11 16:43pm    
Who gives a rats patootie about the execution time? I'm sure his ISP will tell him to get stuffed. I didn't tell him specifics about the code just because this might be a spammer, albeit, a noobie at it.
Sergey Alexandrovich Kryukov 12-Jun-11 23:50pm    
Well, it's a good point. However you cannot deny my answer is correct, can you?
--SA
Dave Kreskowiak 13-Jun-11 6:56am    
It depends on the server and the connection he's got. I know my SMTP box can easily allow me to send 100 emails in a minute. A public one may not be so performant, but then again, it is possible.
Sergey Alexandrovich Kryukov 13-Jun-11 11:39am    
Does not matter, still no guarantee.
--SA

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