# Unable to Send Email to multiple email addresses from INI file

**URL:** https://www.finalbuilder.com/forums/t/unable-to-send-email-to-multiple-email-addresses-from-ini-file/4448
**Category:** Discussion
**Created:** [July 30, 2010, 1:38am UTC](https://www.finalbuilder.com/forums/t/unable-to-send-email-to-multiple-email-addresses-from-ini-file/4448 "2010-07-30T01:38:14Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jeegs](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/j/b19c9b/32.png) [@jeegs](https://www.finalbuilder.com/forums/u/jeegs)
#### Post date: [July 30, 2010, 1:38am UTC](https://www.finalbuilder.com/forums/t/unable-to-send-email-to-multiple-email-addresses-from-ini-file/4448/1 "2010-07-30T01:38:14Z")

</div>

Hello Everybody,

I am using a INI file for send Emails.

Here is the INI&nbsp;file contents

&nbsp;

[Email]

To=email1@address.com; email2@address.com; email3@address.com

&nbsp;

I am trying to send Email to multiple recipients from INI file (using %To% value from INI file) but getting below error

Unable to Send Message

Requested action not taken: mailbox name not allowed

&nbsp;

I tried ";" instead of "," in INI file but the same error got.

&nbsp;

Is it posible or any idea?????

&nbsp;

Thanks for your help.

&nbsp;

Regards,

Jeegs

&nbsp;

&nbsp;

---

<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: [August 4, 2010, 5:55am UTC](https://www.finalbuilder.com/forums/t/unable-to-send-email-to-multiple-email-addresses-from-ini-file/4448/2 "2010-08-04T05:55:26Z")

</div>

Hi Jeegs   
  
 The Send Email action will not accept multiple addresses within a single recipient field.   
  
 You have two options for getting around this:   
  
 1) You could store the email addresses in a text file (each address on a new line) and use the Load From File option on the Recipients tab.   
  
 2) Use a script to add a delimited list of email addresses. I have provided an example script that will add a list of recipients which are stored in the variable ‘To’ and are delimited by a ‘;’ character.   
  
 [code]if (To != “”){ Action.SendLogMessage(“Clearing recipient list: " + Action.RecipientsList.Count + " recipients cleared.”); Action.RecipientsList.Clear(); Action.SendLogMessage("Adding recipients: " + To); Action.RecipientsList.AddDelimitedList(To, “;”);}[/code]   
  
 To use this script:   
 1) Select the Send Email action.   
 2) Select the Script Editor pane and click the Before Action tab.   
 3) Set the script language to Javascript and paste the code above into the code window.   
  
 Regards,   
 Steve

---

<div class="post-metadata">

### Author: ![jeegs](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/j/b19c9b/32.png) [@jeegs](https://www.finalbuilder.com/forums/u/jeegs)
#### Post date: [August 17, 2010, 8:01am UTC](https://www.finalbuilder.com/forums/t/unable-to-send-email-to-multiple-email-addresses-from-ini-file/4448/3 "2010-08-17T08:01:08Z")

</div>

Appreciate your help Steve, That script works good.   
  
 Thanks,   
 Jeegs
