# Adding e-mail recipients

**URL:** https://www.finalbuilder.com/forums/t/adding-e-mail-recipients/1875
**Category:** Discussion
**Created:** [October 15, 2011, 1:15am UTC](https://www.finalbuilder.com/forums/t/adding-e-mail-recipients/1875 "2011-10-15T01:15:08Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![dressel](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/d/9e8a1a/32.png) [@dressel](https://www.finalbuilder.com/forums/u/dressel)
#### Post date: [October 15, 2011, 1:15am UTC](https://www.finalbuilder.com/forums/t/adding-e-mail-recipients/1875/1 "2011-10-15T01:15:08Z")

</div>

I moved a project from FB6 to FB7.&nbsp; The following VB script now fails in FB7 (in a BeforeAction script of a Send Email action):

&nbsp; Action.RecipientsList.Clear

&nbsp; Action.RecipientsList.Add "A Name", "[AnEMailAddress@Domain.com](mailto:AnEMailAddress@Domain.com)"

I tried getting it to work with various changes, but could not.&nbsp; How should it be written?&nbsp;

BTW--what forum product do you use--or did you write this yourself?

Thank you.

---

<div class="post-metadata">

### Author: ![stephen.ryan](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/f14d63/32.png) [@stephen.ryan](https://www.finalbuilder.com/forums/u/stephen.ryan)
#### Post date: [October 17, 2011, 12:22pm UTC](https://www.finalbuilder.com/forums/t/adding-e-mail-recipients/1875/2 "2011-10-17T12:22:04Z")

</div>

Hi Ed   
  
 Not sure why this worked in FB6 (we did change scripting engines between FB6 and FB7), but the RecipientList.Add method actually requires three arguments: Name, email address and a boolean which specifies whether this particular email address is enabled or not.   
  
 So you need to call it like this:   
  
 [code] Action.RecipientsList.Add "A Name", "AnEMailAddress@Domain.com", True[/code]   
  
 We use the Active Forums module for Dot Net Nuke for these forums: [http://www.activemodules.com/ActiveForums.aspx](http://www.activemodules.com/ActiveForums.aspx)   
  
 Hope this helps.   
  
 Regards,   
 Steve

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [October 17, 2011, 12:46pm UTC](https://www.finalbuilder.com/forums/t/adding-e-mail-recipients/1875/3 "2011-10-17T12:46:11Z")

</div>

This is a change in behavior between the FB6 scripting engine and the FB7. I just checked in a fix for this which will allow the method to be called with 2 or 3 parameters (the enabled parameter defaults to true when not provided).
