Examples of send()


Examples of org.apache.cocoon.mail.MailMessageSender.send()

                        }
                    }
                }
            }

            mms.send(resolver);

            if (this.getLogger().isDebugEnabled()) {
                getLogger().debug("SendmailAction: act stop");
            }
View Full Code Here

Examples of org.apache.cocoon.mail.MailSender.send()

                        }
                    }
                }
            }

            mms.send();

            success = true;
            status = new HashMap(3);
            status.put(Sendmail.STATUS, "success");
View Full Code Here

Examples of org.apache.cocoon.portal.event.EventManager.send()

                } else {
                    Iterator iter = this.labelManager.getPageLabelEvents(label).iterator();
                    // Publish all the events for this page label.
                    while (iter.hasNext()) {
                        Event event = (Event) iter.next();
                        publisher.send(event);
                    }
            //        return;
                }
            }
        }
View Full Code Here

Examples of org.apache.commons.httpclient.methods.multipart.FilePart.send()

    public void testFilePartResendsFileData() throws Exception {
        File file = createTempTestFile();
        FilePart part = new FilePart(NAME, file);
        ByteArrayOutputStream stream = new ByteArrayOutputStream();
        part.send(stream);
        String resp1 = stream.toString();
        stream = new ByteArrayOutputStream();
        part.send(stream);
        String resp2 = stream.toString();
        file.delete();
View Full Code Here

Examples of org.apache.commons.httpclient.methods.multipart.StringPart.send()

    }

    public void testStringPartResendsData() throws Exception {
        StringPart part = new StringPart(NAME, PART_DATA);
        ByteArrayOutputStream stream = new ByteArrayOutputStream();
        part.send(stream);
        String resp1 = stream.toString();
        stream = new ByteArrayOutputStream();
        part.send(stream);
        String resp2 = stream.toString();
        assertEquals(resp1, resp2);
View Full Code Here

Examples of org.apache.commons.mail.Email.send()

            if (html) {
                ((HtmlEmail) email).setHtmlMsg(content);
            } else {
                email.setMsg(content);
            }
            email.send();
        } catch (Exception exception) {
            logger.error(exception);
            if (DEBUG) {
                System.out.println(exception.getMessage());
                exception.printStackTrace();
View Full Code Here

Examples of org.apache.commons.mail.HtmlEmail.send()

                html = text;
            }

            mail.setHtmlMsg(html);
            mail.setTextMsg(text);
            mail.send();
            return true;
        } catch (EmailException ex) {
            System.err.print(ex);
            return false;
        }
View Full Code Here

Examples of org.apache.commons.mail.MultiPartEmail.send()

          email.attach(fd, docsDto.getDocName(), docsDto.getDocName());
        }
      }

      setCommonAttributes(emailDto, email);
      email.send();
    }catch(SwingObjectsException e) {
      throw e;
    }catch(EmailException e) {
      if(e.getCause() instanceof AuthenticationFailedException) {
        throw new SwingObjectsException("error.email.authfailed", ErrorSeverity.ERROR, null, EmailHelper.class);
View Full Code Here

Examples of org.apache.commons.mail.SimpleEmail.send()

        StringBuilder body = new StringBuilder();
        body.append(buildBody(stream, checkResult, backlog));
        email.setMsg(body.toString());
        email.addTo(emailAddress);

        email.send();
    }

    protected String buildSubject(Stream stream, AlertCondition.CheckResult checkResult, Configuration config, List<Message> backlog) {
        StringBuilder sb = new StringBuilder();
View Full Code Here

Examples of org.apache.commons.mail.mocks.MockMultiPartEmailConcrete.send()

        ht.put("Disposition-Notification-To", this.strTestMailFrom);
        ht.put("X-Mailer", "Sendmail");

        testEmail.setHeaders(ht);

        testEmail.send();

        this.fakeMailServer.stop();
        // validate message
        validateSend(
            this.fakeMailServer,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.