Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sending Email Asynchronously
Message
De
19/01/2013 07:46:03
 
 
À
19/01/2013 07:13:30
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01563134
Message ID:
01563349
Vues:
33
>>No problem. Maybe you could send me a bit of your weather in exchange :-}
>>
>
>I heard it was supposed to be a bit snowy this weekend. Temperatures should hit 34C here today. :) So far it's a bright and sunny day!

Grrrr..... (and Brrrr)

>
>>>I believe that it is working properly now (just in the middle of testing it).
>>>
>>>One question. If the user starts this process then exits my application, will the emailing process continue until it is finished sending all the emails?
>>
>>No.(at least I'm pretty sure that's the case). You could set a global 'emails pending' flag when you start the send, reset it on the callback and then check the value to prevent the app closing if still true ?
>
>OK, that would explain why only 105 emails got sent the first time, because I killed the app. but I've had it running for a while now and it's only sent 107 out of an expected 209. Previously it sent 105. I wonder if google has a cut off of how many emails (or how long) I can send emails. I'll see if I can try out the actual email account that the system will be using.

Saw this: http://support.google.com/a/bin/answer.py?hl=en&answer=166852
Implies thatm whilst there is a daily message limit, there should be no throttling.

Depending on your app it might be worth considering using your own local smtp server. All you would need to do then is drop the email in the outgoing folder - which might be fast enough to do synchronously. That would also get rid of any premature shutdown problem.....
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform