Combining Two Names Field for sending mail

hello,

Iam making an application where i have to send mail .

i have two names fields with multiple values…

i want to send mail by combining all the names from both the fields…

eg…

doc.SendTo=NamesField1+NamesField2

Thanks

Subject: Combining Two Names Field for sending mail

try:

combinedNames = arrayAppend (doc.field1,doc.field2)

Subject: RE: Combining Two Names Field for sending mail

Thanks a lot