# Examples of scripting send mail

**URL:** https://www.finalbuilder.com/forums/t/examples-of-scripting-send-mail/4319
**Category:** Discussion
**Created:** [July 17, 2008, 12:32pm UTC](https://www.finalbuilder.com/forums/t/examples-of-scripting-send-mail/4319 "2008-07-17T12:32:07Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [July 17, 2008, 12:32pm UTC](https://www.finalbuilder.com/forums/t/examples-of-scripting-send-mail/4319/1 "2008-07-17T12:32:07Z")

</div>

Hi,

I am looking for examples on how to add recipients (both To and CC) via scripting... as these will be defined in a database..

I can see that it is possible somehow, but would like to be able to do it..&nbsp; :-)

HH

---

<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: [July 21, 2008, 3:24am UTC](https://www.finalbuilder.com/forums/t/examples-of-scripting-send-mail/4319/2 "2008-07-21T03:24:37Z")

</div>

You can either do them one-by-one, eg:   
  
 Action.RecipientsList.Add(“Fred [Nurk","freddy@nurk.com](mailto:Nurk%22,%22freddy@nurk.com)”);   
  
 Or as a list, eg:   
  
 Action.RecipientsList.AddDelimitedList("freedy@nurk.com,joe@blow.com",",");   
  
 Or from a file:   
  
 Action.RecipientsList.AddFromFile(“C:\temp\myemaillist.txt”);   
  
  
 To add as CC’s, use Action.CopyToList instead.
