Content
public struct Content : EncodableThe Content class represents a MIME part of the email message (i.e. the
plain text and HTML parts of an email).
- 
                  
                  The content type of the content. DeclarationSwift public let type: ContentType
- 
                  
                  The value of the content. DeclarationSwift public let value: String
- 
                  
                  Initializes the content with a content type and value. DeclarationSwift public init(contentType: ContentType, value aValue: String)ParameterscontentTypeThe content type. aValueThe value of the content. 
- 
                  
                  Validates the content. DeclarationSwift public func validate() throws
- 
                  
                  Creates a new Contentinstance used to represent a plain text body.DeclarationSwift public static func plainText(body value: String) -> ContentParametersvalueThe plain text value of the body. Return ValueA Contentinstance with thetext/plain content type.
- 
                  
                  Creates a new Contentinstance used to represent an HTML body.DeclarationSwift public static func html(body value: String) -> ContentParametersvalueThe HTML text value of the body. Return ValueA Contentinstance with thetext/html content type.
- 
                  
                  Return an array containing a plain text and html body. DeclarationSwift public static func emailBody(plain: String, html: String) -> [Content]ParametersplainThe text value for the plain text body. htmlThe HTML text value for the HTML body. Return ValueAn array of Contentinstances.
 View on GitHub
View on GitHub Content Structure Reference
        Content Structure Reference