@Ignore("This test is disabled since the mail configuration may not work correctly on hudson. and anyway we need to check the received mail format.") @Test public void testSendMail() throws Exception { StringBlob blob = new StringBlob("my content"); blob.setMimeType("text/plain"); blob.setEncoding("UTF-8"); blob.setFilename("thefile.txt"); OperationContext ctx = new OperationContext(session); ctx.setInput(src); OperationChain chain = new OperationChain("sendEMailTest"); chain.add(FetchContextDocument.ID); chain.add(SetDocumentBlob.ID).set("file", blob); chain.add(AdvancedSendEmail.ID).from(fillAdvancedSendMailParameters()); service.run(ctx, chain); }
@OperationMethod(collector = DocumentModelCollector.class) public DocumentModel run(DocumentModel doc) throws Exception { send(doc); return doc; }
AdvancedSendEmail { @OperationMethod(collector = DocumentModelCollector.class) public DocumentModel run(DocumentModel doc) throws Exception { send(doc); return doc; } }
AdvancedSendEmail { @OperationMethod(collector = DocumentModelCollector.class) public DocumentModel run(DocumentModel doc) throws Exception { send(doc); return doc; }  }
AdvancedSendEmail { @OperationMethod(collector = DocumentModelCollector.class) public DocumentModel run(DocumentModel doc) throws Exception { send(doc); return doc; }  @OperationMethod(collector = DocumentModelCollector.class) DocumentModel run(DocumentModel doc); }
AdvancedSendEmail { @OperationMethod(collector = DocumentModelCollector.class) public DocumentModel run(DocumentModel doc) throws Exception { send(doc); return doc; }  @OperationMethod(collector = DocumentModelCollector.class) DocumentModel run(DocumentModel doc); static final String ID; static final Composer COMPOSER; }