Package com.google.appengine.api.mail.MailService

Examples of com.google.appengine.api.mail.MailService.Message


    public static GLoginEndpoint createEndpoint(String endpointUri) throws Exception {
        return (GLoginEndpoint)component.createEndpoint(endpointUri);
    }
   
    public static Message createMessage() throws Exception {
        return new Message();
    }
View Full Code Here


    public static GMailEndpoint createEndpoint(String endpointUri) throws Exception {
        return (GMailEndpoint)component.createEndpoint(endpointUri);
    }
   
    public static Message createMessage() throws Exception {
        return new Message();
    }
View Full Code Here

        component.setCamelContext(context);
        return component;
    }
   
    public static Message createMessage() throws Exception {
        return new Message();
    }
View Full Code Here

  private static final Logger logger = Logger.getLogger(GbMailService.class.getName());

  public static void sendMail(Email email, long controlId, String message) {

    MailService mailService = MailServiceFactory.getMailService();
    Message message1 = new Message();
    message1.setTo(email.getEmail());
    message1.setSubject("The task no [" + controlId + "]" + message);
    message1.setSender("gobo-tools@"
      + ApiProxy.getCurrentEnvironment().getAppId()
      + ".appspotmail.com");
    message1.setTextBody("The task no [" + controlId + "]" + message);
    try {
      mailService.send(message1);
    } catch (IOException e) {
      logger.warning(e.getMessage());
    }
View Full Code Here

     * ignored.
     *
     * @return a newly created {@link Message} instance containing data from <code>exchange</code>.
     */
    public Message writeRequest(GMailEndpoint endpoint, Exchange exchange, Message request) {
        Message message = new Message();
        writeFrom(endpoint, exchange, message);
        writeTo(endpoint, exchange, message);
        writeCc(endpoint, exchange, message);
        writeBcc(endpoint, exchange, message);
        writeSubject(endpoint, exchange, message);
View Full Code Here

        }
        // TSV 作成と削除をする
        BlobKey blobKey = MinutesService.exportAsTSV(minutes);
        MinutesService.deleteMinutes(minutes);
        // ダウンロードURL をメールで送信する
        Message message = new Message();
        message.setSender("minutes@yourappid.appspotmail.com");
        message.setSubject(" 議事録[" + minutes.getTitle() + "] がTSV に変換されました");
        message.setTo(currentUser.getEmail());
        StringBuilder b = new StringBuilder();
        b
            .append(request.getScheme())
            .append("://")
            .append(request.getServerName());
        if (request.getServerPort() != 80) {
            b.append(":").append(request.getServerPort());
        }
        b.append("/minutes?download=").append(blobKey.getKeyString());
        message.setTextBody(b.toString());
        MailService mailService = MailServiceFactory.getMailService();
        mailService.send(message);
        response.setStatus(HttpServletResponse.SC_NO_CONTENT);
        return null;
    }
View Full Code Here

        response.setStatus(HttpServletResponse.SC_NO_CONTENT);
        return null;
    }

    private void sendMail(String keyString) throws IOException {
        Message message = new Message();
        message.setSender("minutes@yourappid.appspotmail.com");
        message.setSubject(" 新しい議事録が追加されました");
        StringBuilder b = new StringBuilder();
        b
            .append(request.getScheme())
            .append("://")
            .append(request.getServerName());
        if (request.getServerPort() != 80) {
            b.append(":").append(request.getServerPort());
        }
        b.append("/minutes.html?minutes=").append(keyString);
        message.setTextBody(b.toString());
        MailService mailService = MailServiceFactory.getMailService();
        mailService.sendToAdmins(message);
    }
View Full Code Here

            content.append("\n\n");
            content.append("Exception: " + errorMessage);
        }

        try {
            mailService.send(new Message(sender, ADMIN, "[Bio-Mixer Feedback]",
                    content.toString()));
        } catch (IOException e) {
            throw new ServiceException(e);
        }
    }
View Full Code Here

        underTest.shareWorkspace(workspaceDTO, emailAddress);

        ArgumentCaptor<Message> argument = ArgumentCaptor
                .forClass(MailService.Message.class);
        verify(mailService, times(1)).send(argument.capture());
        Message message = argument.getValue();

        assertEquals(applicationTitle + " workspace '" + workspaceDTO.getName()
                + "'", message.getSubject());
    }
View Full Code Here

TOP

Related Classes of com.google.appengine.api.mail.MailService.Message

Copyright © 2018 www.massapicom. 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.