Skip to main content
Skip table of contents

addFile

Versionshinweise

12.1

Code

GROOVY
void MailUtils.addFile(ScriptMail mail, String path)

Beschreibung

Fügt eine Datei der Mail als Anhang hinzu. Der Applikationsserver muss auf die Datei zugreifen können.

Parameter

  • mail - Ein ScriptMail Objekt zum Versenden einer Mail.
  • path - Der voll qualifizierte Pfadname der Datei.

Beispiele

GROOVY
ScriptMail mail = MailUtils.createMail("Betreff");
MailUtils.addFile(mail, "c:\\anhang.txt");
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.