Package com.aspose.email

Examples of com.aspose.email.MailAddress


    Date startDate = calendar.getTime();
    calendar.set(2012, Calendar.DECEMBER, 1);
    Date endDate = calendar.getTime();

    MailAddressCollection attendees = new MailAddressCollection();
    attendees.addMailAddress(new MailAddress("attendee_address@aspose.com", "Attendee"));
    WeeklyRecurrencePattern expected = new WeeklyRecurrencePattern(3);

    Appointment app = new Appointment("Appointment Location", "Appointment Summary", "Appointment Description",
            startDate, endDate,
            new MailAddress("organizer_address@aspose.com", "Organizer"), attendees, expected);

    //Set the Appointment as Draft
    app.setMethod(AppointmentMethodType.Publish);//.Method = AppointmentMethodType.Publish;

    message.addAlternateView(app.requestApointment());
View Full Code Here


    String senderDisplayName = "John";
    String senderEmailAddress = "john@abc.com";
    String recipientDisplayName = "William";
    String recipientEmailAddress = "william@xzy.com";

    message.setSender(new MailAddress(senderEmailAddress, senderDisplayName));
    message.getTo().addMailAddress(new MailAddress(recipientEmailAddress, recipientDisplayName));
    message.setHtmlBody(message.getHtmlBody().replace("DisplayName", "<b>" + recipientDisplayName + "</b>"));

    // Set the name, location and time in email body
    String meetingLocation = "<u>" + "Hall 1, Convention Center, New York, USA" + "</u>";
    String meetingTime = "<u>" + "Monday, June 28, 2010" + "</u>";
View Full Code Here

    Date startDate = calendar.getTime();
    calendar.set(2012, Calendar.DECEMBER, 1);
    Date endDate = calendar.getTime();

    MailAddressCollection attendees = new MailAddressCollection();
    attendees.addMailAddress(new MailAddress("attendee_address@domain.com", "Attendee"));
    WeeklyRecurrencePattern expected = new WeeklyRecurrencePattern(3);

    Appointment app = new Appointment("Appointment Location", "Appointment Summary", "Appointment Description",
                      startDate, endDate,
                      new MailAddress("organizer_address@domain.com", "Organizer"), attendees, expected);
    MailMessage msg = new MailMessage();
    msg.addAlternateView(app.requestApointment());
    MapiMessage mapi = MapiMessage.fromMailMessage(msg);
    MapiCalendar cal = (MapiCalendar)mapi.toMapiMessageItem();
View Full Code Here

TOP

Related Classes of com.aspose.email.MailAddress

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.