Perfect!
Btw: While creating a "modDocument" works very well now, there is a problem on creating the symlink (the symlink is going to be a child of the resource created before, using a different template):
$fieldstxt = array();
$fieldstxt['pagetitle'] = $mailingname."-txt";
$fieldstxt['alias'] = $mailingname."-txt";
$fieldstxt['template'] = '52';
$fieldstxt['parent'] = $idofnewresource;
$response = $modx->runProcessor('symlink/create', $fieldstxt);
It is resulting in the same error on making the error-check as before:
Fatal error: Call to a member function isError() on a non-object in line:
if ($response->isError()) {
Is there anything what has to be changed compared to the modDocument-creation?