FB6 Send Email Action.CopyTo

Hi,

I had an old FB 4 project, in which I had defined the CC address in the script as:

Action.CopyTo = AdminAddress

I converted the project to FB6 and it seems that the action fails because of this line:

"Object doesn't support this property or method: 'Action.CopyTo'"

Code completion offers CopyTo however, and also CopyToList, which I tried to use as

Action.CopyTo.Add AdminAddress

but it fails too:

"Wrong number of arguments or invalid property assignment: 'Action.CopyTo.Add'"

I am using FB 6.3.0.2172

How should I do it?

Jouni

 

Hi,

You need to supply 3 parameters: Name, Address and a boolean of some kind.

So something like

Action.CopyTo.Add "Mickey Mouse", "MM@disney.com", True

The last parameter is not mentioned in the help file and I can't remember what it's for, but it is in my scripts so I guess it's needed  You can try to omit it.

Cheers   Lars

Thanks, it helped. Although the correct syntax for me was:

Action.CopyToList.Add “”,AdminAddress

The third parameter was not accepted - also for CopyTo.Add (which is probably exactly the same as CopyToList)