![]() |
#2 |
Участник
|
Я когда-то переделывал код метода 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); } } |
|