Connecting Tech Pros Worldwide Forums | Help | Site Map

Help to send mails with delay in asp.net c#.

Max
Guest
 
Posts: n/a
#1: Nov 19 '05
Hi,

I am newbie developing a MailList program in asp.net c#.

To avoid be considered as a span, a would like to process some messages,
stops, process some messages, stops......

What do you recommend ?

Help!!!

Thanks

R. Thomas, aka Xtreme.Net
Guest
 
Posts: n/a
#2: Nov 19 '05

re: Help to send mails with delay in asp.net c#.


Why do u need such a scenario? are u trying to reduce the process or something?
R. Thomas

"Max" wrote:
[color=blue]
> Hi,
>
> I am newbie developing a MailList program in asp.net c#.
>
> To avoid be considered as a span, a would like to process some messages,
> stops, process some messages, stops......
>
> What do you recommend ?
>
> Help!!!
>
> Thanks[/color]
Lau Lei Cheong
Guest
 
Posts: n/a
#3: Nov 19 '05

re: Help to send mails with delay in asp.net c#.


I think you can System.Threading.Thread.Sleep() for some time between the
loop.

Sorting the Mail-list int the way that the email-address with same domain
get seperated may help too.

"Max" <Max@discussions.microsoft.com> ¦b¶l¥ó
news:B8ACBE96-6F7C-45E4-B5EC-D119C1792770@microsoft.com ¤¤¼¶¼g...[color=blue]
> Hi,
>
> I am newbie developing a MailList program in asp.net c#.
>
> To avoid be considered as a span, a would like to process some messages,
> stops, process some messages, stops......
>
> What do you recommend ?
>
> Help!!!
>
> Thanks[/color]


Max
Guest
 
Posts: n/a
#4: Nov 19 '05

re: Help to send mails with delay in asp.net c#.


Hi,

Thanks for your response.

Can you help me sending a link of a simple Thread tutorial? I only found
"complex tutorials".

I already have a column with the domain for each message, but I am with
doubt about process this in a ASPX page ( presentation tier), I am thinking
about some way to invoke it from a .bat using a schedule manager. I am coming
from JAVA, in asp.net c# do we have something like a servlet ?

Do you have idea about how to invoke HTTP URL from CMD ?

PS: I am think about send blocks of 50 messages from diferent domains.


Thanks,

Max




"Lau Lei Cheong" wrote:
[color=blue]
> I think you can System.Threading.Thread.Sleep() for some time between the
> loop.
>
> Sorting the Mail-list int the way that the email-address with same domain
> get seperated may help too.
>
> "Max" <Max@discussions.microsoft.com> ¦b¶l¥ó
> news:B8ACBE96-6F7C-45E4-B5EC-D119C1792770@microsoft.com ¤¤¼¶¼g...[color=green]
> > Hi,
> >
> > I am newbie developing a MailList program in asp.net c#.
> >
> > To avoid be considered as a span, a would like to process some messages,
> > stops, process some messages, stops......
> >
> > What do you recommend ?
> >
> > Help!!!
> >
> > Thanks[/color]
>
>
>[/color]
R. Thomas, aka Xtreme.Net
Guest
 
Posts: n/a
#5: Nov 19 '05

re: Help to send mails with delay in asp.net c#.


I dont think its a good idea to put ur ASP.Net app to sleep...
R. Thomas

"Max" wrote:
[color=blue]
> Hi,
>
> Thanks for your response.
>
> Can you help me sending a link of a simple Thread tutorial? I only found
> "complex tutorials".
>
> I already have a column with the domain for each message, but I am with
> doubt about process this in a ASPX page ( presentation tier), I am thinking
> about some way to invoke it from a .bat using a schedule manager. I am coming
> from JAVA, in asp.net c# do we have something like a servlet ?
>
> Do you have idea about how to invoke HTTP URL from CMD ?
>
> PS: I am think about send blocks of 50 messages from diferent domains.
>
>
> Thanks,
>
> Max
>
>
>
>
> "Lau Lei Cheong" wrote:
>[color=green]
> > I think you can System.Threading.Thread.Sleep() for some time between the
> > loop.
> >
> > Sorting the Mail-list int the way that the email-address with same domain
> > get seperated may help too.
> >
> > "Max" <Max@discussions.microsoft.com> ¦b¶l¥ó
> > news:B8ACBE96-6F7C-45E4-B5EC-D119C1792770@microsoft.com ¤¤¼¶¼g...[color=darkred]
> > > Hi,
> > >
> > > I am newbie developing a MailList program in asp.net c#.
> > >
> > > To avoid be considered as a span, a would like to process some messages,
> > > stops, process some messages, stops......
> > >
> > > What do you recommend ?
> > >
> > > Help!!!
> > >
> > > Thanks[/color]
> >
> >
> >[/color][/color]
Max
Guest
 
Posts: n/a
#6: Nov 19 '05

re: Help to send mails with delay in asp.net c#.


Hi Thomas ,

Is something diferent from apsx page on asp.net(C#) that could be invoked
isolated ?

If I can develop a isolated component and call this component from CMD .

I can schedule it and leave the component working .

Any ideia ?

Thanks a lot
Max


"R. Thomas, aka Xtreme.Net" wrote:
[color=blue]
> I dont think its a good idea to put ur ASP.Net app to sleep...
> R. Thomas
>
> "Max" wrote:
>[color=green]
> > Hi,
> >
> > Thanks for your response.
> >
> > Can you help me sending a link of a simple Thread tutorial? I only found
> > "complex tutorials".
> >
> > I already have a column with the domain for each message, but I am with
> > doubt about process this in a ASPX page ( presentation tier), I am thinking
> > about some way to invoke it from a .bat using a schedule manager. I am coming
> > from JAVA, in asp.net c# do we have something like a servlet ?
> >
> > Do you have idea about how to invoke HTTP URL from CMD ?
> >
> > PS: I am think about send blocks of 50 messages from diferent domains.
> >
> >
> > Thanks,
> >
> > Max
> >
> >
> >
> >
> > "Lau Lei Cheong" wrote:
> >[color=darkred]
> > > I think you can System.Threading.Thread.Sleep() for some time between the
> > > loop.
> > >
> > > Sorting the Mail-list int the way that the email-address with same domain
> > > get seperated may help too.
> > >
> > > "Max" <Max@discussions.microsoft.com> ¦b¶l¥ó
> > > news:B8ACBE96-6F7C-45E4-B5EC-D119C1792770@microsoft.com ¤¤¼¶¼g...
> > > > Hi,
> > > >
> > > > I am newbie developing a MailList program in asp.net c#.
> > > >
> > > > To avoid be considered as a span, a would like to process some messages,
> > > > stops, process some messages, stops......
> > > >
> > > > What do you recommend ?
> > > >
> > > > Help!!!
> > > >
> > > > Thanks
> > >
> > >
> > >[/color][/color][/color]
R. Thomas, aka Xtreme.Net
Guest
 
Posts: n/a
#7: Nov 19 '05

re: Help to send mails with delay in asp.net c#.


Usually things like mailing is done by batches..
The batches run on specified shcedules and is invisible to the user..
I dont understand why u need to stop and process when its sending mails...
Hth...
R. Thomas

"Max" wrote:
[color=blue]
> Hi Thomas ,
>
> Is something diferent from apsx page on asp.net(C#) that could be invoked
> isolated ?
>
> If I can develop a isolated component and call this component from CMD .
>
> I can schedule it and leave the component working .
>
> Any ideia ?
>
> Thanks a lot
> Max
>
>
> "R. Thomas, aka Xtreme.Net" wrote:
>[color=green]
> > I dont think its a good idea to put ur ASP.Net app to sleep...
> > R. Thomas
> >
> > "Max" wrote:
> >[color=darkred]
> > > Hi,
> > >
> > > Thanks for your response.
> > >
> > > Can you help me sending a link of a simple Thread tutorial? I only found
> > > "complex tutorials".
> > >
> > > I already have a column with the domain for each message, but I am with
> > > doubt about process this in a ASPX page ( presentation tier), I am thinking
> > > about some way to invoke it from a .bat using a schedule manager. I am coming
> > > from JAVA, in asp.net c# do we have something like a servlet ?
> > >
> > > Do you have idea about how to invoke HTTP URL from CMD ?
> > >
> > > PS: I am think about send blocks of 50 messages from diferent domains.
> > >
> > >
> > > Thanks,
> > >
> > > Max
> > >
> > >
> > >
> > >
> > > "Lau Lei Cheong" wrote:
> > >
> > > > I think you can System.Threading.Thread.Sleep() for some time between the
> > > > loop.
> > > >
> > > > Sorting the Mail-list int the way that the email-address with same domain
> > > > get seperated may help too.
> > > >
> > > > "Max" <Max@discussions.microsoft.com> ¦b¶l¥ó
> > > > news:B8ACBE96-6F7C-45E4-B5EC-D119C1792770@microsoft.com ¤¤¼¶¼g...
> > > > > Hi,
> > > > >
> > > > > I am newbie developing a MailList program in asp.net c#.
> > > > >
> > > > > To avoid be considered as a span, a would like to process some messages,
> > > > > stops, process some messages, stops......
> > > > >
> > > > > What do you recommend ?
> > > > >
> > > > > Help!!!
> > > > >
> > > > > Thanks
> > > >
> > > >
> > > >[/color][/color][/color]
Nelson R.
Guest
 
Posts: n/a
#8: Nov 19 '05

re: Help to send mails with delay in asp.net c#.


On Thu, 6 Jan 2005 18:55:04 -0800, Max <Max@discussions.microsoft.com>
wrote:
[color=blue]
>
>Do you have idea about how to invoke HTTP URL from CMD ?
>[/color]

You can use start from command line to open an URL using the default
browser:

C:\>start http://www.microsoft.com



Best regards,
Nelson R.


Lau Lei Cheong
Guest
 
Posts: n/a
#9: Nov 19 '05

re: Help to send mails with delay in asp.net c#.


Actually I don't think the idea of sending mass email through an ASP.NET
application is good at all.

He should write an standard application to do it.

"R. Thomas, aka Xtreme.Net" <removemeXtremeDotNet@hotmail.com.NoSpam> ¦b¶l¥ó
news:F57E17F0-554C-4EA7-8531-EEC1FA6EEB33@microsoft.com ¤¤¼¶¼g...[color=blue]
> I dont think its a good idea to put ur ASP.Net app to sleep...
> R. Thomas
>
> "Max" wrote:
>[color=green]
> > Hi,
> >
> > Thanks for your response.
> >
> > Can you help me sending a link of a simple Thread tutorial? I only found
> > "complex tutorials".
> >
> > I already have a column with the domain for each message, but I am with
> > doubt about process this in a ASPX page ( presentation tier), I am[/color][/color]
thinking[color=blue][color=green]
> > about some way to invoke it from a .bat using a schedule manager. I am[/color][/color]
coming[color=blue][color=green]
> > from JAVA, in asp.net c# do we have something like a servlet ?
> >
> > Do you have idea about how to invoke HTTP URL from CMD ?
> >
> > PS: I am think about send blocks of 50 messages from diferent domains.
> >
> >
> > Thanks,
> >
> > Max
> >
> >
> >
> >
> > "Lau Lei Cheong" wrote:
> >[color=darkred]
> > > I think you can System.Threading.Thread.Sleep() for some time between[/color][/color][/color]
the[color=blue][color=green][color=darkred]
> > > loop.
> > >
> > > Sorting the Mail-list int the way that the email-address with same[/color][/color][/color]
domain[color=blue][color=green][color=darkred]
> > > get seperated may help too.
> > >
> > > "Max" <Max@discussions.microsoft.com> |b?l¢Do
> > > news:B8ACBE96-6F7C-45E4-B5EC-D119C1792770@microsoft.com ?????g...
> > > > Hi,
> > > >
> > > > I am newbie developing a MailList program in asp.net c#.
> > > >
> > > > To avoid be considered as a span, a would like to process some[/color][/color][/color]
messages,[color=blue][color=green][color=darkred]
> > > > stops, process some messages, stops......
> > > >
> > > > What do you recommend ?
> > > >
> > > > Help!!!
> > > >
> > > > Thanks
> > >
> > >
> > >[/color][/color][/color]


Lau Lei Cheong
Guest
 
Posts: n/a
#10: Nov 19 '05

re: Help to send mails with delay in asp.net c#.


That's probably because most spam killers will determine your email server
is sending spam if it receives certain amount of email from the same sender
within a short period.

"R. Thomas, aka Xtreme.Net" <removemeXtremeDotNet@hotmail.com.NoSpam> ¦b¶l¥ó
news:851251E1-3A4C-40E2-B4AE-8FFD149F07AA@microsoft.com ¤¤¼¶¼g...[color=blue]
> Usually things like mailing is done by batches..
> The batches run on specified shcedules and is invisible to the user..
> I dont understand why u need to stop and process when its sending mails...
> Hth...
> R. Thomas
>
> "Max" wrote:
>[color=green]
> > Hi Thomas ,
> >
> > Is something diferent from apsx page on asp.net(C#) that could be[/color][/color]
invoked[color=blue][color=green]
> > isolated ?
> >
> > If I can develop a isolated component and call this component from CMD[/color][/color]
..[color=blue][color=green]
> >
> > I can schedule it and leave the component working .
> >
> > Any ideia ?
> >
> > Thanks a lot
> > Max
> >
> >
> > "R. Thomas, aka Xtreme.Net" wrote:
> >[color=darkred]
> > > I dont think its a good idea to put ur ASP.Net app to sleep...
> > > R. Thomas
> > >
> > > "Max" wrote:
> > >
> > > > Hi,
> > > >
> > > > Thanks for your response.
> > > >
> > > > Can you help me sending a link of a simple Thread tutorial? I only[/color][/color][/color]
found[color=blue][color=green][color=darkred]
> > > > "complex tutorials".
> > > >
> > > > I already have a column with the domain for each message, but I am[/color][/color][/color]
with[color=blue][color=green][color=darkred]
> > > > doubt about process this in a ASPX page ( presentation tier), I am[/color][/color][/color]
thinking[color=blue][color=green][color=darkred]
> > > > about some way to invoke it from a .bat using a schedule manager. I[/color][/color][/color]
am coming[color=blue][color=green][color=darkred]
> > > > from JAVA, in asp.net c# do we have something like a servlet ?
> > > >
> > > > Do you have idea about how to invoke HTTP URL from CMD ?
> > > >
> > > > PS: I am think about send blocks of 50 messages from diferent[/color][/color][/color]
domains.[color=blue][color=green][color=darkred]
> > > >
> > > >
> > > > Thanks,
> > > >
> > > > Max
> > > >
> > > >
> > > >
> > > >
> > > > "Lau Lei Cheong" wrote:
> > > >
> > > > > I think you can System.Threading.Thread.Sleep() for some time[/color][/color][/color]
between the[color=blue][color=green][color=darkred]
> > > > > loop.
> > > > >
> > > > > Sorting the Mail-list int the way that the email-address with same[/color][/color][/color]
domain[color=blue][color=green][color=darkred]
> > > > > get seperated may help too.
> > > > >
> > > > > "Max" <Max@discussions.microsoft.com> |b?l¢Do
> > > > > news:B8ACBE96-6F7C-45E4-B5EC-D119C1792770@microsoft.com ?????g...
> > > > > > Hi,
> > > > > >
> > > > > > I am newbie developing a MailList program in asp.net c#.
> > > > > >
> > > > > > To avoid be considered as a span, a would like to process some[/color][/color][/color]
messages,[color=blue][color=green][color=darkred]
> > > > > > stops, process some messages, stops......
> > > > > >
> > > > > > What do you recommend ?
> > > > > >
> > > > > > Help!!!
> > > > > >
> > > > > > Thanks
> > > > >
> > > > >
> > > > >[/color][/color][/color]


Lau Lei Cheong
Guest
 
Posts: n/a
#11: Nov 19 '05

re: Help to send mails with delay in asp.net c#.


"Max" <Max@discussions.microsoft.com> ¦b¶l¥ó
news:3715E0A8-DEEB-4DCC-8EEB-D117110BA6F9@microsoft.com ¤¤¼¶¼g...[color=blue]
> Hi,
>
> Thanks for your response.
>
> Can you help me sending a link of a simple Thread tutorial? I only found
> "complex tutorials".[/color]

Manage the skill of multi-thread application will require some study so
there's basically no simple tutorial on it.
And the application you're writing actually doesn't require to use threading
things.
[color=blue]
> I already have a column with the domain for each message, but I am with
> doubt about process this in a ASPX page ( presentation tier), I am[/color]
thinking[color=blue]
> about some way to invoke it from a .bat using a schedule manager. I am[/color]
coming[color=blue]
> from JAVA, in asp.net c# do we have something like a servlet ?[/color]
That'll be wise thing to do. Given you've got the data in database a tiny
windows console application will be good enough. Writing a service that'll
schedule itself to send the mail will be better.
[color=blue]
> Do you have idea about how to invoke HTTP URL from CMD ?[/color]
Answered by others. "C:\Program Files\Internet Explorer\iexplore.exe
http://your.site" will do too.
[color=blue]
> PS: I am think about send blocks of 50 messages from diferent domains.[/color]
I've heard domains like Sina have lower limit. Better keep it lower than 30.


Closed Thread