 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Robby Collins Guest
|
Posted: Thu Apr 29, 2004 10:27 pm Post subject: newbie : Best way to send Email? |
|
|
Hello,
i am using D6 and Indy9 to write an email application that sends a
65kb PDF document to about 500 email addresses.
i am adding all 500 email addresses in a loop with the following:
BccList.Add.Text := "PersonsName"<EmailAddress>
i am able to send the email, but it took about an hour to send and
only about 190 emails made it to their destination.
Is there a limit on the number of addresses in a BCCList?
Why did it take an hour to send?
What did i do wrong?
How do i speed this up and improve the results?
Any help is appreciated,
Robby
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Fri Apr 30, 2004 12:11 am Post subject: Re: newbie : Best way to send Email? |
|
|
"Robby Collins" <robby (AT) jimbishopcabinets (DOT) com> wrote
| Quote: | i am adding all 500 email addresses in a loop with
the following: BccList.Add.Text := "PersonsName"
|
Most email providers don't allow that many recipients in a single message.
You should limit your recipient list to about 20-100 per message, depending
on the limitations of the particular service provider that your are using to
send the message with.
With that many recipients, you should serious consider setting up a mailing
list instead. That way, you need to send your message to only a single
address, and then let the mailing list provider will handle sending the
message to each individual recipient on your behalf.
| Quote: | Is there a limit on the number of addresses in a BCCList?
|
That depends on the service provider.
| Quote: | Why did it take an hour to send?
|
For 500 recipients, that averages about 5-7 seconds per recipient. When you
use the To, Bcc, or Cc feature, every individual address listed has to be
verified by the server before the actual message content is even touched,
let alone transmitted to the server. Indy is checking the server's response
on each of those validations.
| Quote: | What did i do wrong?
How do i speed this up and improve the results?
|
Use a mailing list instead. If you are sending your mail from a client on a
company network through an in-house email service, chances are the server
already has built-in support for mailing lists. Otherwise, there are plenty
of third-party companies that provide that kind of service, either for free
(such as Yahoo Groups) or at least a small fee.
Gambit
|
|
| Back to top |
|
 |
Robby Collins Guest
|
Posted: Fri Apr 30, 2004 2:35 pm Post subject: Re: newbie : Best way to send Email? |
|
|
"Remy Lebeau (TeamB)" <gambit47.no.spam (AT) no (DOT) spam.yahoo.com> wrote
| Quote: | How do i speed this up and improve the results?
Use a mailing list instead. If you are sending your mail from a client on
a
company network through an in-house email service, chances are the server
already has built-in support for mailing lists. Otherwise, there are
plenty
of third-party companies that provide that kind of service, either for
free
(such as Yahoo Groups) or at least a small fee.
|
This list changes weekly based on membership. Is there a way to
programmatically
create a mailing list? <OR> Is that out of the scope of this group?
Thanks,
Robby
|
|
| Back to top |
|
 |
Rene Tschaggelar Guest
|
Posted: Fri Apr 30, 2004 3:53 pm Post subject: Re: newbie : Best way to send Email? |
|
|
| Quote: | This list changes weekly based on membership. Is there a way >>to
programmatically
create a mailing list? <OR> Is that out of the scope of this
group?
|
There are mailing lists, ahem servers, and they send the messages
directly as they probably contain an SMTP.
So for a mailing list server itself, I guess you need the SMTP
component. Don't bother about TO's and BCC's.
Rene
--
Ing.Buro R.Tschaggelar http://www.ibrtses.com
Your newsgroups @ http://www.talkto.net
|
|
| Back to top |
|
 |
Robby Collins Guest
|
Posted: Fri Apr 30, 2004 7:39 pm Post subject: Re: newbie : Best way to send Email? |
|
|
Rene,
i didn't understand your answer to my question. Are you saying that
there is a way to build an email list with Indy9?
Thanks,
Robby
"Rene Tschaggelar" <ee123123wqe12 (AT) sd242323 (DOT) com> wrote
| Quote: |
This list changes weekly based on membership. Is there a way >>to
programmatically
create a mailing list? <OR> Is that out of the scope of this
group?
There are mailing lists, ahem servers, and they send the messages
directly as they probably contain an SMTP.
So for a mailing list server itself, I guess you need the SMTP
component. Don't bother about TO's and BCC's.
Rene
--
Ing.Buro R.Tschaggelar http://www.ibrtses.com
Your newsgroups @ http://www.talkto.net
|
|
|
| Back to top |
|
 |
Rene Tschaggelar Guest
|
Posted: Sat May 01, 2004 11:23 am Post subject: Re: newbie : Best way to send Email? |
|
|
Robby,
you intend to send a bunch of emails.
When you want to automate this, you can write a mailclient,
meaning a slim version of thunderbird, outlook or the like,
which in turn send their messages to an SMTP. This SMTP
may be at your provider, or it may be at your place.
I for example have an own SMTP that allows me to send mail
from a user named "ee123123wqe12 (AT) sd242323 (DOT) com" (amongst others)
which is absolutely great.
Or you can write your own SMTP with the SMTP component from Indy.
The purpose of the SMTP is to tear an email address apart and
find the IP where the packet has to be sent to.
This means is makes a lot of DNS access to figure that out.
And yes, the SMTP sends the email 500 times.
If you just write a mailclient the SMTP does the sending for you
and you have to be bothered with lists and the like.
It all depends whether you have the bandwidth.
If you have the bandwidth, eg with cable or ADSL, an own SMTP,
eg on a linux box is recommended.
Plus there is free mailing list software, such as mailman and
majordomo that just need configuration (for Linux).
If you don't have the bandwidth, eg with a dial up connection,
you have to use lists of BCC in the mailheader, after figuring
out how long they may be to be accepted by the SMTP of your
provider. They still can have a counter and decide that you
don't have to send more than NN messages per day, which means
you 'd have to split them over the days.
Rene
Robby Collins wrote:
| Quote: | Rene,
i didn't understand your answer to my question. Are you saying that
there is a way to build an email list with Indy9?
Thanks,
Robby
"Rene Tschaggelar" <ee123123wqe12 (AT) sd242323 (DOT) com> wrote in message
news:xn0dhn89s000000z (AT) ibrt_7 (DOT) ..
This list changes weekly based on membership. Is there a way >>to
programmatically
create a mailing list? <OR> Is that out of the scope of this
group?
There are mailing lists, ahem servers, and they send the messages
directly as they probably contain an SMTP.
So for a mailing list server itself, I guess you need the SMTP
component. Don't bother about TO's and BCC's.
|
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Sat May 01, 2004 8:37 pm Post subject: Re: newbie : Best way to send Email? |
|
|
"Robby Collins" <robby (AT) jimbishopcabinets (DOT) com> wrote
| Quote: | i didn't understand your answer to my question. Are you saying that
there is a way to build an email list with Indy9?
|
Mailing lists are a server-side feature. They have nothing to do with Indy
specifically. As far as Indy is concerned, a mailing list is nothing more
than a single email address. When an email is sent to that address, the
service provider hosting the mailing list handles resolving the individual
addresses belonging to the mailing list and then sending the message to each
of them individually.
Gambit
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Sat May 01, 2004 8:40 pm Post subject: Re: newbie : Best way to send Email? |
|
|
"Rene Tschaggelar" <ee123123wqe12 (AT) sd242323 (DOT) com> wrote
| Quote: | you intend to send a bunch of emails.
When you want to automate this, you can write
a mailclient, meaning a slim version of thunderbird,
outlook or the like, which in turn send their messages
to an SMTP.
|
That is what he is already doing, if you go re-read the original message.
The problem is that he is trying to put too many repicients into the
To/Cc/Bcc fields. Hense my suggestion for establishing a mailing list
somewhere, so that his own code is only sending his generated message to
only a single email address rather than 500 addresses.
Gambit
|
|
| Back to top |
|
 |
Rene Tschaggelar Guest
|
Posted: Sun May 02, 2004 8:03 pm Post subject: Re: newbie : Best way to send Email? |
|
|
Remy Lebeau (TeamB) wrote:
| Quote: |
"Rene Tschaggelar" <ee123123wqe12 (AT) sd242323 (DOT) com> wrote in message
news:xn0dhr8xo0000011 (AT) ibrt_7 (DOT) ..
you intend to send a bunch of emails.
When you want to automate this, you can write
a mailclient, meaning a slim version of thunderbird,
outlook or the like, which in turn send their messages
to an SMTP.
That is what he is already doing, if you go re-read the original
message. The problem is that he is trying to put too many repicients
into the To/Cc/Bcc fields. Hense my suggestion for establishing a
mailing list somewhere, so that his own code is only sending his
generated message to only a single email address rather than 500
addresses.
|
Yes, and my vote to lean back and think it over again
from a broader perspective.
Rene
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|