- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Was bedeutet void Methode(Klasse... parameters) ?
Hallo Community,
ich bin gerade dabei ein Skript in der Auftragsverwaltung zu schreiben. Dabei wird eine E-Mail versendet, die 2 Anhรคnge enthalten soll. In der Doku steht dazu folgendes:
void
sendMail(String sender, String recipient, String subject, String message, String subType, boolean synchronous, Attachment... attachments)
Ich bin nun etwas verwirrt, da mir die Notation mit den Pรผnktchen bisher noch nicht รผber den Weg gelaufen ist. Man kennt ja das รผbliche z.B. bei Arrays [] usw..
Wie bekomme ich meine 2 Anhรคnge nun versendet?
attachment1 = new Attachment(new File("path/File"));
attachment2 = new Attachment(new File("path/File2"));
Folgendes habe ich schon probiert:
context.getConnection().getMailService().sendMail(sender, recipient, subject, message, subType, synchronous, attachment1...atachment2);
Wer weiร rat?
Viele Grรผรe
Johannes Perlet
- Labels:
-
Developers
- Tags:
- beanshell
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Das Stichwort ist varargs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Das Stichwort ist varargs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Vielen Dank fรผr die schnellen und hilfreichen Antworten.

