# Sending e-mail announcements

**URL:** https://www.finalbuilder.com/forums/t/sending-e-mail-announcements/4265
**Category:** Discussion
**Created:** [February 27, 2007, 8:18am UTC](https://www.finalbuilder.com/forums/t/sending-e-mail-announcements/4265 "2007-02-27T08:18:41Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![jsmess11](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/j/f475e1/32.png) [@jsmess11](https://www.finalbuilder.com/forums/u/jsmess11)
#### Post date: [February 27, 2007, 8:18am UTC](https://www.finalbuilder.com/forums/t/sending-e-mail-announcements/4265/1 "2007-02-27T08:18:41Z")

</div>

I am interested in sending e-mail announcements to select customers. Is there a way that I can import e-mail addresses into Automate?

&nbsp;

thanks for your help,

John

---

<div class="post-metadata">

### Author: ![tate](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/e19b73/32.png) [@tate](https://www.finalbuilder.com/forums/u/tate)
#### Post date: [February 27, 2007, 4:37am UTC](https://www.finalbuilder.com/forums/t/sending-e-mail-announcements/4265/2 "2007-02-27T04:37:05Z")

</div>

Hi John,  
  
The Send Email action allows you to load the list of addresses from a file. If you want to send one email with the list of people bcc’ed then load them into the BCC, otherwise use the To section and select the “Individual” mode on the Sender tab (this will send a separate email for each address in the to section).  
  
hth.  
.t8

---

<div class="post-metadata">

### Author: ![tate](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/e19b73/32.png) [@tate](https://www.finalbuilder.com/forums/u/tate)
#### Post date: [February 27, 2007, 4:37am UTC](https://www.finalbuilder.com/forums/t/sending-e-mail-announcements/4265/3 "2007-02-27T04:37:58Z")

</div>

and the other way to do it is to use a File Contents Iterator which then runs the email action (as a child action) for each email address in the file (but you need to use variables to achieve this).

---

<div class="post-metadata">

### Author: ![jsmess11](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/j/f475e1/32.png) [@jsmess11](https://www.finalbuilder.com/forums/u/jsmess11)
#### Post date: [February 27, 2007, 8:00am UTC](https://www.finalbuilder.com/forums/t/sending-e-mail-announcements/4265/4 "2007-02-27T08:00:10Z")

</div>

Thanks Tate,

How would I go about learning how to use the variables with the File Iterator&nbsp;in order&nbsp;to achieve this?

John

---

<div class="post-metadata">

### Author: ![tate](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/e19b73/32.png) [@tate](https://www.finalbuilder.com/forums/u/tate)
#### Post date: [February 27, 2007, 8:36am UTC](https://www.finalbuilder.com/forums/t/sending-e-mail-announcements/4265/5 "2007-02-27T08:36:40Z")

</div>

John,  
  
There is a section in the help file that explains variables… but briefly, this is what you need to do:  
1. Define a new variable (Tools menu | Edit Variables), call it: CurrentEmail  
2. Use a File Contents Iterator action (assumes that there is one email address per line), and use the variable you created in the drop down list  
3. Add an Email action and indent it so it’s a child action of the iterator  
4. In the BeforeAction event of the Email Action (script editor is in the bottom section of the screen), add the following code (JavaScript):  
Action.RecipientsList.Clear();  
Action.RecipientsList.Add("",CurrentEmail);  
  
and that’s it. although, exactly the same result is achieved by using the “Load email address from file” option in the email action (and selecting individual mode).  
  
hth.  
.t8

---

<div class="post-metadata">

### Author: ![jsmess11](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/j/f475e1/32.png) [@jsmess11](https://www.finalbuilder.com/forums/u/jsmess11)
#### Post date: [February 28, 2007, 2:14am UTC](https://www.finalbuilder.com/forums/t/sending-e-mail-announcements/4265/6 "2007-02-28T02:14:32Z")

</div>

Thanks Tate,

I am out of the office the next couple of days, but I will try this as soon as I get back. Thank you for the instructions & quick response!

&nbsp;

best,

John

---

<div class="post-metadata">

### Author: ![jsmess11](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/j/f475e1/32.png) [@jsmess11](https://www.finalbuilder.com/forums/u/jsmess11)
#### Post date: [March 9, 2007, 7:17am UTC](https://www.finalbuilder.com/forums/t/sending-e-mail-announcements/4265/7 "2007-03-09T07:17:54Z")

</div>

Tate,

I ahve been trying to do this, but it doesn't seem to go thru. I get the "No recipents have been specified error". In the Action.Recipents command should I use the name of the .txt file instead of _RECIPIENTS_?

&nbsp;

Also do I need to set any default value for the varialble "currentemail" or have any of the check boxes for Make AVAIL/Macro/Persistent?

&nbsp;

thanks,

John

---

<div class="post-metadata">

### Author: ![jsmess11](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/j/f475e1/32.png) [@jsmess11](https://www.finalbuilder.com/forums/u/jsmess11)
#### Post date: [March 9, 2007, 8:57am UTC](https://www.finalbuilder.com/forums/t/sending-e-mail-announcements/4265/8 "2007-03-09T08:57:44Z")

</div>

Tate,

Never mind - I figured it out & it works great!

&nbsp;

thanks for your help,

John
