Tabnine Logo
RawMessage.withData
Code IndexAdd Tabnine to your IDE (free)

How to use
withData
method
in
com.amazonaws.services.simpleemail.model.RawMessage

Best Java code snippets using com.amazonaws.services.simpleemail.model.RawMessage.withData (Showing top 1 results out of 315)

origin: br.com.caelum.vraptor/vraptor-simplemail

RawMessage mail2Content(Email email) throws IOException,
    MessagingException, EmailException {
  email.buildMimeMessage();
  ByteArrayOutputStream out = new ByteArrayOutputStream();
  email.getMimeMessage().writeTo(out);
  return new RawMessage().withData(ByteBuffer.wrap(out.toByteArray()));
}
com.amazonaws.services.simpleemail.modelRawMessagewithData

Javadoc

The raw data of the message. This data needs to base64-encoded if you are accessing Amazon SES directly through the HTTPS interface. If you are accessing Amazon SES using an AWS SDK, the SDK takes care of the base 64-encoding for you. In all cases, the client must ensure that the message format complies with Internet email standards regarding email header fields, MIME types, and MIME encoding.

The To:, CC:, and BCC: headers in the raw message can contain a group list.

If you are using SendRawEmail with sending authorization, you can include X-headers in the raw message to specify the "Source," "From," and "Return-Path" addresses. For more information, see the documentation for SendRawEmail.

Do not include these X-headers in the DKIM signature, because they are removed by Amazon SES before sending the email.

For more information, go to the Amazon SES Developer Guide.

The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.

Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.

Popular methods of RawMessage

  • <init>
    Constructs a new RawMessage object. Callers should use the setter or fluent setter (with...) methods
  • equals
  • getData
    The raw data of the message. This data needs to base64-encoded if you are accessing Amazon SES dire
  • hashCode
  • setData
    The raw data of the message. This data needs to base64-encoded if you are accessing Amazon SES dire

Popular in Java

  • Making http requests using okhttp
  • startActivity (Activity)
  • setContentView (Activity)
  • putExtra (Intent)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now