View Javadoc
1   /*
2    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
3    * The software in this package is published under the terms of the CPAL v1.0
4    * license, a copy of which has been included with this distribution in the
5    * LICENSE.txt file.
6    */
7   package org.mule.transport.email;
8   
9   /**
10   * Mail properties that are sent on the DefaultMuleMessage when receiving a Mail Message or
11   * which can be set on the endpoint or event to be added to outgoing mail
12   */
13  public interface MailProperties
14  {
15      /**
16       * MuleEvent properties
17       */
18      public static final String CONTENT_TYPE_PROPERTY = "contentType";
19      public static final String TO_ADDRESSES_PROPERTY = "toAddresses";
20      public static final String CC_ADDRESSES_PROPERTY = "ccAddresses";
21      public static final String BCC_ADDRESSES_PROPERTY = "bccAddresses";
22      public static final String FROM_ADDRESS_PROPERTY = "fromAddress";
23      public static final String REPLY_TO_ADDRESSES_PROPERTY = "replyToAddresses";
24      public static final String SUBJECT_PROPERTY = "subject";
25      public static final String CUSTOM_HEADERS_MAP_PROPERTY = "customHeaders";
26      public static final String SENT_DATE_PROPERTY = "sentDate";
27      
28      //these properties will be used to avoid conflict with the outbound SMTP properties
29      public static final String INBOUND_CONTENT_TYPE_PROPERTY = "inbound.contentType";
30      public static final String INBOUND_TO_ADDRESSES_PROPERTY = "inbound.toAddresses";
31      public static final String INBOUND_CC_ADDRESSES_PROPERTY = "inbound.ccAddresses";
32      public static final String INBOUND_BCC_ADDRESSES_PROPERTY = "inbound.bccAddresses";
33      public static final String INBOUND_FROM_ADDRESS_PROPERTY = "inbound.fromAddress";
34      public static final String INBOUND_REPLY_TO_ADDRESSES_PROPERTY = "inbound.replyToAddresses";
35      public static final String INBOUND_SUBJECT_PROPERTY = "inbound.subject";
36      public static final String INBOUND_CUSTOM_HEADERS_MAP_PROPERTY = "inbound.customHeaders";
37      public static final String INBOUND_SENT_DATE_PROPERTY = "inbound.sentDate";
38  }