Quantcast
Channel: PTC Community : Unanswered Discussions - Windchill
Viewing all articles
Browse latest Browse all 3592

How can send Email attachments through code with API wt.mail.EMailMessage.addAttachments ?

$
0
0

wt.mail.EMailMessage message = wt.mail.EMailMessage.newEMailMessage();

message.setSubject("Mail Subject");

message.addRecipient(user,1);     //recipients paramInt = 1

message.addRecipient(boss,2); //ccRecipients paramInt = 2

message.addAttachments(??????); //Help Me

message.setOriginator((WTPrincipal)wtsender);

message.addPart("Mail Content","text/html");

message.send(true);


Viewing all articles
Browse latest Browse all 3592

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>