Adding e-mail recipients

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

  Action.RecipientsList.Clear

  Action.RecipientsList.Add "A Name", "AnEMailAddress@Domain.com"

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

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

Thank you.

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

Hope this helps.

Regards,
Steve

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).