A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Sending multiple e-mail msg to multiple e-mail addresses



 
 
Thread Tools Display Modes
  #1  
Old December 5th, 2004, 08:38 AM
Niklas Östergren
external usenet poster
 
Posts: n/a
Default Sending multiple e-mail msg to multiple e-mail addresses

Hi!

Iīm about to create code so the user can send the same e-mail message to
multiple recivers. A couple of times a year the user have to send msg to
every member in the assosiation (between. 200 - 250 e-mail addresses). But
since a mail with 200 e-mail addresses can be consider as spaming we want to
send the e-mailīs i batches of a dynamic number of address, stored in a
table editable by the user. So the user can set how many e-mail addresses
each batch of e-mail addresses shall contain.Our experience is that it
should not be more than 50 addresses per mail. Which means that wh need to
send 4 - 5 e-mials and I have to populate the array, holding the e-mail
addresses, 4 - 5 times

The problem that I see so far is:
- How do I make the code to break after creating each e-mail message,
waiting for the user to send it?
- How do I know when to continu with creating the next mail after the user
have sent the prevoius mail?

One way of doing this easy for me is to create ALL e-mail msg at the same
time ending up with having 4 - 5 e-mails poping up on the screen waiting for
the user to press command button Send. But this can get quit messy for the
user and what happens if some funny person change the variable to 1
address/mail. Then the code creates 200 - 250 mails poping up on the screen.
Noting I would be verry happy about. Not to menthion the user.

Another way of dealing with this, which would be quit easy for me is to NOT
pop the msg up at the screen but to actually send all mails automaticly and
then display a msg to the user about what have happend. This on the other
hand will cause the user problem since the internet connection is of modem
type 56 kb/s and hwo knows what the mail contains (attached files, pictures
etc.) So this can take a verry long time without the user beeing able to
break the sendings without turning the modem off. And the code, in my
application, not knowing how fare we have come (which e-mail addresses that
have been sent to).

Therfore I want to split the sending up and give the user the final desition
about IF to send the msg or not in as large batches as the user findīs
convenient.

Iīm new to this with arrayīs and have played around a little woth it during
yesterday and also read about it. I donīt know enough to populate and
retreive an array without an example or my books. But I know how to use it
if I see an example and I understand the code, itīs just that I donīt
remember everything yet.

So fare I have found out that I probably should use method GetRows since
this gives me the advantage of knowing which next record is to strat getting
the next batch from. I have allready tryed this out, not with actually
sending e-mails but to populating an array with integers from a recordset
and to retrive them by using Debug.Print.

As you can se I have som major problems to make this work, since i donīt
have a clue about how to stop the code and when to start again. Offfcourse I
can pop up a MsgBox where the user can select to continu to the next batch
or not but is that going to work?

TIA!
// Niklas




  #2  
Old December 5th, 2004, 02:36 PM
Harry Betlem
external usenet poster
 
Posts: n/a
Default

Niklas,

I'm just 'plain thinking'.
Maybe you could make a query on the e-mail adresses.
If the Table, with the addresses, contains a field (True/False) you can set it
to True, after mails have been created. (in code)

Try to send 50 mails by using an Loop
(For i = 1 to 50
send then mail
set the 'send' to true
i = i +1
next i

Maybe this might help you

Harry

In , Niklas Östergren dropped
the following:
|| Hi!
||
|| Iīm about to create code so the user can send the same e-mail
|| message to multiple recivers. A couple of times a year the user have
|| to send msg to every member in the assosiation (between. 200 - 250
|| e-mail addresses). But since a mail with 200 e-mail addresses can be
|| consider as spaming we want to send the e-mailīs i batches of a
|| dynamic number of address, stored in a table editable by the user.
|| So the user can set how many e-mail addresses each batch of e-mail
|| addresses shall contain.Our experience is that it should not be more
|| than 50 addresses per mail. Which means that wh need to send 4 - 5
|| e-mials and I have to populate the array, holding the e-mail
|| addresses, 4 - 5 times
||
|| The problem that I see so far is:
|| - How do I make the code to break after creating each e-mail message,
|| waiting for the user to send it?
|| - How do I know when to continu with creating the next mail after
|| the user have sent the prevoius mail?
||
|| One way of doing this easy for me is to create ALL e-mail msg at the
|| same time ending up with having 4 - 5 e-mails poping up on the
|| screen waiting for the user to press command button Send. But this
|| can get quit messy for the user and what happens if some funny
|| person change the variable to 1 address/mail. Then the code creates
|| 200 - 250 mails poping up on the screen. Noting I would be verry
|| happy about. Not to menthion the user.
||
|| Another way of dealing with this, which would be quit easy for me is
|| to NOT pop the msg up at the screen but to actually send all mails
|| automaticly and then display a msg to the user about what have
|| happend. This on the other hand will cause the user problem since
|| the internet connection is of modem type 56 kb/s and hwo knows what
|| the mail contains (attached files, pictures etc.) So this can take a
|| verry long time without the user beeing able to break the sendings
|| without turning the modem off. And the code, in my application, not
|| knowing how fare we have come (which e-mail addresses that have been
|| sent to).
||
|| Therfore I want to split the sending up and give the user the final
|| desition about IF to send the msg or not in as large batches as the
|| user findīs convenient.
||
|| Iīm new to this with arrayīs and have played around a little woth it
|| during yesterday and also read about it. I donīt know enough to
|| populate and retreive an array without an example or my books. But I
|| know how to use it if I see an example and I understand the code,
|| itīs just that I donīt remember everything yet.
||
|| So fare I have found out that I probably should use method GetRows
|| since this gives me the advantage of knowing which next record is to
|| strat getting the next batch from. I have allready tryed this out,
|| not with actually sending e-mails but to populating an array with
|| integers from a recordset and to retrive them by using Debug.Print.
||
|| As you can se I have som major problems to make this work, since i
|| donīt have a clue about how to stop the code and when to start
|| again. Offfcourse I can pop up a MsgBox where the user can select to
|| continu to the next batch or not but is that going to work?
||
|| TIA!
|| // Niklas


  #3  
Old December 5th, 2004, 08:27 PM
Niklas Östergren
external usenet poster
 
Posts: n/a
Default

Hi Harry!

yes, thatīs possible. Not that I have, or need, a field with true/false in
the table since I have a SendDate field in which I set the date the mail
was sent. And in this table I store the Dispatch Delivery for each e-mail
address so I know which addresses that have recived which dispatch.

Thankīs for the idéa. Iīll think of it because itīs a easyer way of doing
what Iīm trying right now.

// Niklas

"Harry Betlem" skrev i meddelandet
...
Niklas,

I'm just 'plain thinking'.
Maybe you could make a query on the e-mail adresses.
If the Table, with the addresses, contains a field (True/False) you can
set it
to True, after mails have been created. (in code)

Try to send 50 mails by using an Loop
(For i = 1 to 50
send then mail
set the 'send' to true
i = i +1
next i

Maybe this might help you

Harry

In , Niklas Östergren dropped
the following:
|| Hi!
||
|| Iīm about to create code so the user can send the same e-mail
|| message to multiple recivers. A couple of times a year the user have
|| to send msg to every member in the assosiation (between. 200 - 250
|| e-mail addresses). But since a mail with 200 e-mail addresses can be
|| consider as spaming we want to send the e-mailīs i batches of a
|| dynamic number of address, stored in a table editable by the user.
|| So the user can set how many e-mail addresses each batch of e-mail
|| addresses shall contain.Our experience is that it should not be more
|| than 50 addresses per mail. Which means that wh need to send 4 - 5
|| e-mials and I have to populate the array, holding the e-mail
|| addresses, 4 - 5 times
||
|| The problem that I see so far is:
|| - How do I make the code to break after creating each e-mail message,
|| waiting for the user to send it?
|| - How do I know when to continu with creating the next mail after
|| the user have sent the prevoius mail?
||
|| One way of doing this easy for me is to create ALL e-mail msg at the
|| same time ending up with having 4 - 5 e-mails poping up on the
|| screen waiting for the user to press command button Send. But this
|| can get quit messy for the user and what happens if some funny
|| person change the variable to 1 address/mail. Then the code creates
|| 200 - 250 mails poping up on the screen. Noting I would be verry
|| happy about. Not to menthion the user.
||
|| Another way of dealing with this, which would be quit easy for me is
|| to NOT pop the msg up at the screen but to actually send all mails
|| automaticly and then display a msg to the user about what have
|| happend. This on the other hand will cause the user problem since
|| the internet connection is of modem type 56 kb/s and hwo knows what
|| the mail contains (attached files, pictures etc.) So this can take a
|| verry long time without the user beeing able to break the sendings
|| without turning the modem off. And the code, in my application, not
|| knowing how fare we have come (which e-mail addresses that have been
|| sent to).
||
|| Therfore I want to split the sending up and give the user the final
|| desition about IF to send the msg or not in as large batches as the
|| user findīs convenient.
||
|| Iīm new to this with arrayīs and have played around a little woth it
|| during yesterday and also read about it. I donīt know enough to
|| populate and retreive an array without an example or my books. But I
|| know how to use it if I see an example and I understand the code,
|| itīs just that I donīt remember everything yet.
||
|| So fare I have found out that I probably should use method GetRows
|| since this gives me the advantage of knowing which next record is to
|| strat getting the next batch from. I have allready tryed this out,
|| not with actually sending e-mails but to populating an array with
|| integers from a recordset and to retrive them by using Debug.Print.
||
|| As you can se I have som major problems to make this work, since i
|| donīt have a clue about how to stop the code and when to start
|| again. Offfcourse I can pop up a MsgBox where the user can select to
|| continu to the next batch or not but is that going to work?
||
|| TIA!
|| // Niklas




  #4  
Old December 6th, 2004, 10:08 AM
Harry Betlem
external usenet poster
 
Posts: n/a
Default

Niklas,

In , Niklas Östergren dropped
the following:
|| Hi Harry!
||
|| yes, thatīs possible. Not that I have, or need, a field with
|| true/false in the table since I have a SendDate field in which I
|| set the date the mail was sent. And in this table I store the
|| Dispatch Delivery for each e-mail address so I know which addresses
|| that have recived which dispatch.

That's all the same. In the end the effect comes to the 'remaining' records.
You simply 're-use' that query, in which the SendDate is still empty.

||
|| Thankīs for the idéa. Iīll think of it because itīs a easyer way of
|| doing what Iīm trying right now.

Why not do things in a simple way?
(KIBS)
||
|| // Niklas
||
|| "Harry Betlem" skrev i meddelandet
|| ...
||| Niklas,
|||
||| I'm just 'plain thinking'.
||| Maybe you could make a query on the e-mail adresses.
||| If the Table, with the addresses, contains a field (True/False) you
||| can set it
||| to True, after mails have been created. (in code)
|||
||| Try to send 50 mails by using an Loop
||| (For i = 1 to 50
||| send then mail
||| set the 'send' to true
||| i = i +1
||| next i
|||
||| Maybe this might help you
|||
||| Harry
|||
||| In , Niklas Östergren
||| dropped the following:
||||| Hi!
|||||
||||| Iīm about to create code so the user can send the same e-mail
||||| message to multiple recivers. A couple of times a year the user
||||| have to send msg to every member in the assosiation (between. 200
||||| - 250 e-mail addresses). But since a mail with 200 e-mail
||||| addresses can be consider as spaming we want to send the e-mailīs
||||| i batches of a dynamic number of address, stored in a table
||||| editable by the user. So the user can set how many e-mail
||||| addresses each batch of e-mail addresses shall contain.Our
||||| experience is that it should not be more than 50 addresses per
||||| mail. Which means that wh need to send 4 - 5 e-mials and I have
||||| to populate the array, holding the e-mail addresses, 4 - 5 times
|||||
||||| The problem that I see so far is:
||||| - How do I make the code to break after creating each e-mail
||||| message, waiting for the user to send it?
||||| - How do I know when to continu with creating the next mail after
||||| the user have sent the prevoius mail?
|||||
||||| One way of doing this easy for me is to create ALL e-mail msg at
||||| the same time ending up with having 4 - 5 e-mails poping up on the
||||| screen waiting for the user to press command button Send. But
||||| this can get quit messy for the user and what happens if some
||||| funny person change the variable to 1 address/mail. Then the code
||||| creates 200 - 250 mails poping up on the screen. Noting I would
||||| be verry happy about. Not to menthion the user.
|||||
||||| Another way of dealing with this, which would be quit easy for me
||||| is to NOT pop the msg up at the screen but to actually send all
||||| mails automaticly and then display a msg to the user about what
||||| have happend. This on the other hand will cause the user problem
||||| since the internet connection is of modem type 56 kb/s and hwo
||||| knows what the mail contains (attached files, pictures etc.) So
||||| this can take a verry long time without the user beeing able to
||||| break the sendings without turning the modem off. And the code,
||||| in my application, not knowing how fare we have come (which
||||| e-mail addresses that have been sent to).
|||||
||||| Therfore I want to split the sending up and give the user the
||||| final desition about IF to send the msg or not in as large
||||| batches as the user findīs convenient.
|||||
||||| Iīm new to this with arrayīs and have played around a little woth
||||| it during yesterday and also read about it. I donīt know enough to
||||| populate and retreive an array without an example or my books.
||||| But I know how to use it if I see an example and I understand the
||||| code, itīs just that I donīt remember everything yet.
|||||
||||| So fare I have found out that I probably should use method
||||| GetRows since this gives me the advantage of knowing which next
||||| record is to strat getting the next batch from. I have allready
||||| tryed this out, not with actually sending e-mails but to
||||| populating an array with integers from a recordset and to retrive
||||| them by using Debug.Print.
|||||
||||| As you can se I have som major problems to make this work, since i
||||| donīt have a clue about how to stop the code and when to start
||||| again. Offfcourse I can pop up a MsgBox where the user can select
||||| to continu to the next batch or not but is that going to work?
|||||
||||| TIA!
||||| // Niklas


  #5  
Old December 6th, 2004, 10:35 AM
Niklas Östergren
external usenet poster
 
Posts: n/a
Default

Harry!

"That's all the same. In the end the effect comes to the 'remaining'
records.
You simply 're-use' that query, in which the SendDate is still empty"

Yes I know!

"Why not do things in a simple way?"

Because Iīm allmost finished with this wizard and I have spent a lot of time
developing this and even if using tab-control is much simpler I know that
Iīll need to spend more time on developing a new wizard then to finsh this
one of.

But Iīll sure have this in mind next wizard I need to do. So thank you for
highlighting this for me!

// Niklas


"Harry Betlem" skrev i meddelandet
...
Niklas,

In , Niklas Östergren dropped
the following:
|| Hi Harry!
||
|| yes, thatīs possible. Not that I have, or need, a field with
|| true/false in the table since I have a SendDate field in which I
|| set the date the mail was sent. And in this table I store the
|| Dispatch Delivery for each e-mail address so I know which addresses
|| that have recived which dispatch.

That's all the same. In the end the effect comes to the 'remaining'

records.
You simply 're-use' that query, in which the SendDate is still empty.

||
|| Thankīs for the idéa. Iīll think of it because itīs a easyer way of
|| doing what Iīm trying right now.

Why not do things in a simple way?
(KIBS)
||
|| // Niklas
||
|| "Harry Betlem" skrev i meddelandet
|| ...
||| Niklas,
|||
||| I'm just 'plain thinking'.
||| Maybe you could make a query on the e-mail adresses.
||| If the Table, with the addresses, contains a field (True/False) you
||| can set it
||| to True, after mails have been created. (in code)
|||
||| Try to send 50 mails by using an Loop
||| (For i = 1 to 50
||| send then mail
||| set the 'send' to true
||| i = i +1
||| next i
|||
||| Maybe this might help you
|||
||| Harry
|||
||| In , Niklas Östergren
||| dropped the following:
||||| Hi!
|||||
||||| Iīm about to create code so the user can send the same e-mail
||||| message to multiple recivers. A couple of times a year the user
||||| have to send msg to every member in the assosiation (between. 200
||||| - 250 e-mail addresses). But since a mail with 200 e-mail
||||| addresses can be consider as spaming we want to send the e-mailīs
||||| i batches of a dynamic number of address, stored in a table
||||| editable by the user. So the user can set how many e-mail
||||| addresses each batch of e-mail addresses shall contain.Our
||||| experience is that it should not be more than 50 addresses per
||||| mail. Which means that wh need to send 4 - 5 e-mials and I have
||||| to populate the array, holding the e-mail addresses, 4 - 5 times
|||||
||||| The problem that I see so far is:
||||| - How do I make the code to break after creating each e-mail
||||| message, waiting for the user to send it?
||||| - How do I know when to continu with creating the next mail after
||||| the user have sent the prevoius mail?
|||||
||||| One way of doing this easy for me is to create ALL e-mail msg at
||||| the same time ending up with having 4 - 5 e-mails poping up on the
||||| screen waiting for the user to press command button Send. But
||||| this can get quit messy for the user and what happens if some
||||| funny person change the variable to 1 address/mail. Then the code
||||| creates 200 - 250 mails poping up on the screen. Noting I would
||||| be verry happy about. Not to menthion the user.
|||||
||||| Another way of dealing with this, which would be quit easy for me
||||| is to NOT pop the msg up at the screen but to actually send all
||||| mails automaticly and then display a msg to the user about what
||||| have happend. This on the other hand will cause the user problem
||||| since the internet connection is of modem type 56 kb/s and hwo
||||| knows what the mail contains (attached files, pictures etc.) So
||||| this can take a verry long time without the user beeing able to
||||| break the sendings without turning the modem off. And the code,
||||| in my application, not knowing how fare we have come (which
||||| e-mail addresses that have been sent to).
|||||
||||| Therfore I want to split the sending up and give the user the
||||| final desition about IF to send the msg or not in as large
||||| batches as the user findīs convenient.
|||||
||||| Iīm new to this with arrayīs and have played around a little woth
||||| it during yesterday and also read about it. I donīt know enough to
||||| populate and retreive an array without an example or my books.
||||| But I know how to use it if I see an example and I understand the
||||| code, itīs just that I donīt remember everything yet.
|||||
||||| So fare I have found out that I probably should use method
||||| GetRows since this gives me the advantage of knowing which next
||||| record is to strat getting the next batch from. I have allready
||||| tryed this out, not with actually sending e-mails but to
||||| populating an array with integers from a recordset and to retrive
||||| them by using Debug.Print.
|||||
||||| As you can se I have som major problems to make this work, since i
||||| donīt have a clue about how to stop the code and when to start
||||| again. Offfcourse I can pop up a MsgBox where the user can select
||||| to continu to the next batch or not but is that going to work?
|||||
||||| TIA!
||||| // Niklas




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Third party program sending mail Dave_ General Discussion 8 June 23rd, 2005 10:56 PM
Hiding multiple addresses in the "to Box". roofplanner Contacts 1 September 27th, 2004 09:29 PM
IE6's Mail Sending to Yahoo Mail & not OE Monica Outlook Express 4 July 2nd, 2004 01:45 AM
Mail Merge two fields that have multiple lines with new line control code Eric Li Mailmerge 7 May 25th, 2004 06:10 PM
Multiple Many-To-Many Tables Tom Database Design 7 May 15th, 2004 03:47 AM


All times are GMT +1. The time now is 07:43 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright Đ2004-2024 OfficeFrustration.
The comments are property of their posters.