Я когда-то переделывал код метода sendMailAttach следующим образом:
X++:
if (_attachPath)
{
found = strFind(_attachPath,';', 1, strLen(_attachPath));
fileNumber = 1;
while (found)
{
name = subStr(_attachPath, 1, found-1);
_attachPath = strDel(_attachPath, 1, found);
if (name)
{
file.path(name);
msg.setFileNo(fileNumber, file);
fileNumber++;
}
found = strFind(_attachPath,';', 1, strLen(_attachPath));
}
if (_attachPath)
{
file.path(_attachPath);
msg.setFileNo(fileNumber, file);
}
}
(правда это 2.5 было, и возможно чего-то не скопировал - но идея очень ясна, думаю)