Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am going to use C# to write e-mails into the Pickup directory. Each e-mail will have a 3-5mb pdf attachment. There will be about 500-700 e-mails dropped into the pickup directory at one time. I setup a domain in IIS for my hostgator e-mail account which I would like to use to send out these e-mails.

Hostgator limits to 500 emails per hour. My internet connection speed is 3mb down and 768kb up.

How or where can I limit how many e-mails are sent out at a time in IIS? And what should the settings be?

Thanks,

Jake

share|improve this question

migrated from stackoverflow.com Dec 20 '11 at 16:42

This question came from our site for professional and enthusiast programmers.

closed as off topic by Shane Madden, Iain, Scott Pack, Chris S, mailq Dec 21 '11 at 20:22

Questions on Server Fault are expected to relate to professional server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

1  
What's wrong with letting hostgator limit the e-mails to 500/h? –  Chris S Dec 20 '11 at 18:14
    
Well, as it is... won't IIS try to send out all of the e-mails one after another? What if it sends out 700 within an hour? Is there not a way to limit how many e-mails per x minutes/hours etc. in IIS so that I can stay within hostgators limits?\ –  RV-10Builder Dec 20 '11 at 18:29
    
Yes, IIS would dump all of the outgoing e-mail on the SMTP MTA. I'm asking, why not simply allow hostgator to limit your outgoing e-mail? There is no easy way to implement this in the MTA or IIS. The application would have to be written in such a way as to limit output frequency. –  Chris S Dec 20 '11 at 18:31
    
If you send over 500/hr the e-mails will fail and may bounce back with an undeliverable error. I guess I could put a timer on it in C#. If the retrieved rows is >= 475, process 475 then wait an hour before processing the rest. Or write 5 e-mails to the pickup folder ever 36 seconds. When I say processing I mean writing the e-mail to the pickup folder. –  RV-10Builder Dec 20 '11 at 18:39
    
Maybe not applicable to your situation, but if you can get IIS to relay through an Exchange 2010 server, this question/answer talks about throttling messages. –  Ben Pilbrow Dec 20 '11 at 18:41

Browse other questions tagged or ask your own question.