Package com.veeva.vault.sdk.api.email
Interface EmailItem
public interface EmailItem
Represents a single email.
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves a list of carbon copy email addresses.Retrieves a list of email attachments that were sent with this email.int
getEmailBodySize
(EmailBodyType emailBodyType) Retrieves the size in bytes of this email body.Retrieves aFileReference
pointing to the stored .eml file to be used to create a document or attachment.Retrieves a list of email header names.getHeaderValues
(String headerName) Retrieves a list of email header values for the given header name.getId()
Retrieves the ID of theemail__sys
record.Retrieves the Message-ID header value of this email.Retrieves the recipient of this email.Retrieves the sender of this email.Retrieves the date this email was sent.Retrieves the subject line of this email.Retrieves a list of To email addresses.
-
Method Details
-
getEmailBodySize
Retrieves the size in bytes of this email body.- Parameters:
emailBodyType
- the EmailBodyType to get the size of- Returns:
- int size in bytes
-
getEmailFile
EmailFileReference getEmailFile()Retrieves aFileReference
pointing to the stored .eml file to be used to create a document or attachment.- Returns:
- EmailFileReference pointing to the .eml file
-
getEmailAttachments
List<EmailFileReference> getEmailAttachments()Retrieves a list of email attachments that were sent with this email.- Returns:
- List of EmailFileReferences pointing to email attachment files
-
getHeaderNames
Retrieves a list of email header names.- Returns:
- list of EmailHeaders
-
getHeaderValues
Retrieves a list of email header values for the given header name.- Parameters:
headerName
- header for which to get values- Returns:
- list of header values
-
getId
String getId()Retrieves the ID of theemail__sys
record.- Returns:
- record id
-
getMessageId
String getMessageId()Retrieves the Message-ID header value of this email.- Returns:
- email Message-ID value
-
getRecipient
EmailRecipient getRecipient()Retrieves the recipient of this email.- Returns:
- EmailRecipient
-
getSender
EmailSender getSender()Retrieves the sender of this email.- Returns:
- EmailSender
-
getSentDate
ZonedDateTime getSentDate()Retrieves the date this email was sent.- Returns:
- date time
-
getSubject
String getSubject()Retrieves the subject line of this email.- Returns:
- subject line
-
getToAddresses
List<EmailAddress> getToAddresses()Retrieves a list of To email addresses.- Returns:
- list of To addresses
-
getCcAddresses
List<EmailAddress> getCcAddresses()Retrieves a list of carbon copy email addresses.- Returns:
- list of email addresses
-