slow:
...pseud code
while(have emails)
{
//fetch email
//preinitialised smtpclient object with host and message used
smtpclient.sendemail();
}
I have seen some complex codes written for mass emailing, why is the aboce
so slow and what are the issues with doing it this way? Could anyone point
me to the 'right' method? I already page my sql server via a stored proc to
bring back the data in 1000 record chunks.
I use asp.net 2 and c#
ThanksHello,
I had a similar issue long time ago using .net fx 1.1, the workaround that
I found was to send an e-mail for each ten persons (then if you have 1000
contacts you will only send 100 e-mails), that worked perfect for me, I'm not
sure if I had to workaround the thing of getting several persons in the "To"
field (I think that didn't happened).
Good Luck
Braulio
PS: More Info about SMTP and ASP .net
http://www.tipsdotnet.com/ArticleBl...MTP&PageIndex=0
/// ----------
/// Braulio Diez
///
/// http://www.tipsdotnet.com
/// ----------
"PokerMan" wrote:
Quote:
Originally Posted by
I need to email my client database of emails, but doing this is just too
slow:
>
...pseud code
>
while(have emails)
{
//fetch email
//preinitialised smtpclient object with host and message used
smtpclient.sendemail();
}
>
I have seen some complex codes written for mass emailing, why is the aboce
so slow and what are the issues with doing it this way? Could anyone point
me to the 'right' method? I already page my sql server via a stored proc to
bring back the data in 1000 record chunks.
>
I use asp.net 2 and c#
>
Thanks
>
>
>
Thank you for the reply...
I have 8100 people at present so i page 1000 at a time into the datareader,
loop it and send. If i add 10 people to the email ata time i think it does
then put all 10 in the To field. Unless i use bcc? And make the to field a
dummy address? What would be your best advice here?
i will investigate this method tho, thanks...anyone else with any other
methods or tips?
"Braulio Diez" <braulio121NOSPAM@.yahoo.eswrote in message
news:985A863D-708E-4614-82AC-67E5F23EB7C4@.microsoft.com...
Quote:
Originally Posted by
Hello,
>
I had a similar issue long time ago using .net fx 1.1, the workaround
that
I found was to send an e-mail for each ten persons (then if you have 1000
contacts you will only send 100 e-mails), that worked perfect for me, I'm
not
sure if I had to workaround the thing of getting several persons in the
"To"
field (I think that didn't happened).
>
Good Luck
Braulio
>
PS: More Info about SMTP and ASP .net
>
http://www.tipsdotnet.com/ArticleBl...MTP&PageIndex=0
>
>
/// ----------
/// Braulio Diez
///
/// http://www.tipsdotnet.com
/// ----------
>
>
>
>
"PokerMan" wrote:
>
Quote:
Originally Posted by
>I need to email my client database of emails, but doing this is just too
>slow:
>>
>...pseud code
>>
>while(have emails)
>{
> //fetch email
> //preinitialised smtpclient object with host and message used
> smtpclient.sendemail();
>}
>>
>I have seen some complex codes written for mass emailing, why is the
>aboce
>so slow and what are the issues with doing it this way? Could anyone
>point
>me to the 'right' method? I already page my sql server via a stored proc
>to
>bring back the data in 1000 record chunks.
>>
>I use asp.net 2 and c#
>>
>Thanks
>>
>>
>>
Try the several to's approach I think it doesn't show all the To's in every
mail (at least I think it was that way on system.web.mail).
Tell me if the approach works, if not we have to find another workaround :-)
/// ----------
/// Braulio Diez
///
/// http://www.tipsdotnet.com
/// ----------
"PokerMan" wrote:
Quote:
Originally Posted by
Thank you for the reply...
>
I have 8100 people at present so i page 1000 at a time into the datareader,
loop it and send. If i add 10 people to the email ata time i think it does
then put all 10 in the To field. Unless i use bcc? And make the to field a
dummy address? What would be your best advice here?
>
i will investigate this method tho, thanks...anyone else with any other
methods or tips?
>
>
"Braulio Diez" <braulio121NOSPAM@.yahoo.eswrote in message
news:985A863D-708E-4614-82AC-67E5F23EB7C4@.microsoft.com...
Quote:
Originally Posted by
Hello,
I had a similar issue long time ago using .net fx 1.1, the workaround
that
I found was to send an e-mail for each ten persons (then if you have 1000
contacts you will only send 100 e-mails), that worked perfect for me, I'm
not
sure if I had to workaround the thing of getting several persons in the
"To"
field (I think that didn't happened).
Good Luck
Braulio
PS: More Info about SMTP and ASP .net
http://www.tipsdotnet.com/ArticleBl...MTP&PageIndex=0
/// ----------
/// Braulio Diez
///
/// http://www.tipsdotnet.com
/// ----------
"PokerMan" wrote:
Quote:
Originally Posted by
I need to email my client database of emails, but doing this is just too
slow:
>
...pseud code
>
while(have emails)
{
//fetch email
//preinitialised smtpclient object with host and message used
smtpclient.sendemail();
}
>
I have seen some complex codes written for mass emailing, why is the
aboce
so slow and what are the issues with doing it this way? Could anyone
point
me to the 'right' method? I already page my sql server via a stored proc
to
bring back the data in 1000 record chunks.
>
I use asp.net 2 and c#
>
Thanks
>
>
>
>
>
>
It doesn't shed any light about the multiple "To's" issue, but I would try this
http://weblogs.asp.net/scottgu/arch.../10/432854.aspx
I know is very basic, but worth to give a try.
--
/// ----------
/// Braulio Diez
///
/// http://www.tipsdotnet.com
/// ----------
"Braulio Diez" wrote:
Quote:
Originally Posted by
Hello,
>
I had a similar issue long time ago using .net fx 1.1, the workaround that
I found was to send an e-mail for each ten persons (then if you have 1000
contacts you will only send 100 e-mails), that worked perfect for me, I'm not
sure if I had to workaround the thing of getting several persons in the "To"
field (I think that didn't happened).
>
Good Luck
Braulio
>
PS: More Info about SMTP and ASP .net
>
http://www.tipsdotnet.com/ArticleBl...MTP&PageIndex=0
>
>
/// ----------
/// Braulio Diez
///
/// http://www.tipsdotnet.com
/// ----------
>
>
>
>
"PokerMan" wrote:
>
Quote:
Originally Posted by
I need to email my client database of emails, but doing this is just too
slow:
...pseud code
while(have emails)
{
//fetch email
//preinitialised smtpclient object with host and message used
smtpclient.sendemail();
}
I have seen some complex codes written for mass emailing, why is the aboce
so slow and what are the issues with doing it this way? Could anyone point
me to the 'right' method? I already page my sql server via a stored proc to
bring back the data in 1000 record chunks.
I use asp.net 2 and c#
Thanks
"PokerMan" <nospam@.pokercat.co.ukwrote in message
news:%23X7bHzDMIHA.2064@.TK2MSFTNGP06.phx.gbl...
Quote:
Originally Posted by
Thank you for the reply...
>
I have 8100 people at present so i page 1000 at a time into the
datareader, loop it and send. If i add 10 people to the email ata time i
think it does then put all 10 in the To field. Unless i use bcc? And make
the to field a dummy address? What would be your best advice here?
>
i will investigate this method tho, thanks...anyone else with any other
methods or tips?
put the addresses in BCC unless you want all the recipients to know who else
got the email ... even if you don't care, it looks sloppy on the TO line and
may get spam-trapped if this is external mail
so how slow is "slow" ? could be you're ok and could be that BCC'ing and
the like is ducking the issue of figuring out a more efficient way to do the
job, which you may or may not care about ...
Quote:
Originally Posted by
"Braulio Diez" <braulio121NOSPAM@.yahoo.eswrote in message
news:985A863D-708E-4614-82AC-67E5F23EB7C4@.microsoft.com...
Quote:
Originally Posted by
>Hello,
>>
> I had a similar issue long time ago using .net fx 1.1, the workaround
>that
>I found was to send an e-mail for each ten persons (then if you have 1000
>contacts you will only send 100 e-mails), that worked perfect for me, I'm
>not
>sure if I had to workaround the thing of getting several persons in the
>"To"
>field (I think that didn't happened).
>>
> Good Luck
> Braulio
>>
> PS: More Info about SMTP and ASP .net
>>
>http://www.tipsdotnet.com/ArticleBl...MTP&PageIndex=0
>>
>>
>/// ----------
>/// Braulio Diez
>///
>/// http://www.tipsdotnet.com
>/// ----------
>>
>>
>>
>>
>"PokerMan" wrote:
>>
Quote:
Originally Posted by
>>I need to email my client database of emails, but doing this is just too
>>slow:
>>>
>>...pseud code
>>>
>>while(have emails)
>>{
>> //fetch email
>> //preinitialised smtpclient object with host and message used
>> smtpclient.sendemail();
>>}
>>>
>>I have seen some complex codes written for mass emailing, why is the
>>aboce
>>so slow and what are the issues with doing it this way? Could anyone
>>point
>>me to the 'right' method? I already page my sql server via a stored proc
>>to
>>bring back the data in 1000 record chunks.
>>>
>>I use asp.net 2 and c#
>>>
>>Thanks
>>>
>>>
>>>
>
>
As another person asked, how slow is "slow"? We occasionally send about 3000
and it takes 30-45 minutes.
What exactly are you doing in "preinitialised smtpclient object with host
and message used"? More specifically, are you disconnecting and
re-connecting to the SMTP server every time? All you need to do is change
the "TO" line (and perhaps the message body, if desired) and send the new
email.
If all else fails, consider using a list service instead.
Scott
Quote:
Originally Posted by
Quote:
Originally Posted by
>I have 8100 people at present
Quote:
Originally Posted by
Quote:
Originally Posted by
Quote:
Originally Posted by
>>>I need to email my client database of emails, but doing this is just
>>>too
>>>slow:
>>
>>>...pseud code
>>
>>>while(have emails)
>>>{
>>> //fetch email
>>> //preinitialised smtpclient object with host and message used
>>> smtpclient.sendemail();
>>>}
>>
Yep thats exactly what i am doing.
By pre-init, as in host doesnt change, from doesnt change etc. So i just doa
smtpclient.send in aloop, and i am getting similar time frames, which to me
is quite poor? On the 8k ppl i geta time out and it runs for along time,
what about huge databases of 100k plus people, how do they do it? If 3k ppl
takes 30 minutes, thats 100 every minute, so a 100k ppl is 16hrs plus! There
must be a more efficient way surely? My database is growing rapidly and i am
worrying aboutt he scalability of my solution? Any ideas?
For now i will try the bcc and bulk them in so a load go with one smtp
client send and try and improve it that way.
Thanks in advance, i look forward to hearing other methods
"Scott Roberts" <sroberts@.no.spam.here-webworks-software.comwrote in
message news:eo2sK7EMIHA.1204@.TK2MSFTNGP03.phx.gbl...
Quote:
Originally Posted by
As another person asked, how slow is "slow"? We occasionally send about
3000 and it takes 30-45 minutes.
>
What exactly are you doing in "preinitialised smtpclient object with host
and message used"? More specifically, are you disconnecting and
re-connecting to the SMTP server every time? All you need to do is change
the "TO" line (and perhaps the message body, if desired) and send the new
email.
>
If all else fails, consider using a list service instead.
>
Scott
>
>
>
Quote:
Originally Posted by
Quote:
Originally Posted by
>>I have 8100 people at present
>
Quote:
Originally Posted by
Quote:
Originally Posted by
>>I need to email my client database of emails, but doing this is just
>>too
>>slow:
>>
>>...pseud code
>>
>>while(have emails)
>>{
>> //fetch email
>> //preinitialised smtpclient object with host and message used
>> smtpclient.sendemail();
>>}
>>
>
>
Quote:
Originally Posted by
On the 8k ppl i geta time out and it runs for along time,
what about huge databases of 100k plus people, how do they do it? If 3k
ppl takes 30 minutes, thats 100 every minute, so a 100k ppl is 16hrs plus!
There must be a more efficient way surely? My database is growing rapidly
and i am worrying aboutt he scalability of my solution? Any ideas?
Is there a particular reason that time is a problem?
As I mentioned before, you might look into a list service. I'm guessing that
there is tighter integration with the mail server and speeds are much
better.
On Nov 26, 2:46 pm, "PokerMan" <nos...@.pokercat.co.ukwrote:
Quote:
Originally Posted by
I need to email my client database of emails, but doing this is just too
slow:
>
..pseud code
>
while(have emails)
{
//fetch email
//preinitialised smtpclient object with host and message used
smtpclient.sendemail();
>
}
>
I have seen some complex codes written for mass emailing, why is the aboce
so slow and what are the issues with doing it this way? Could anyone point
me to the 'right' method? I already page my sql server via a stored proc to
bring back the data in 1000 record chunks.
>
I use asp.net 2 and c#
>
Thanks
Where the SMTP server is located, on the same server?
No its not.
Well my site seems to time out which is why i want it shorter. I have it set
now not to time out but it still seems to eventually break when it runs too
long (into the hours). So i wnt it to run shorter if possible.
"Scott Roberts" <sroberts@.no.spam.here-webworks-software.comwrote in
message news:eBNSzyFMIHA.5328@.TK2MSFTNGP05.phx.gbl...
Quote:
Originally Posted by
>
Quote:
Originally Posted by
>On the 8k ppl i geta time out and it runs for along time,
>what about huge databases of 100k plus people, how do they do it? If 3k
>ppl takes 30 minutes, thats 100 every minute, so a 100k ppl is 16hrs
>plus! There must be a more efficient way surely? My database is growing
>rapidly and i am worrying aboutt he scalability of my solution? Any
>ideas?
>
Is there a particular reason that time is a problem?
>
As I mentioned before, you might look into a list service. I'm guessing
that there is tighter integration with the mail server and speeds are much
better.
>
0 comments:
Post a Comment