BasicMessage class

An email message with all relevant data.

Inheritance

Constructors

BasicMessage({required Email from, required String subject})

Properties

ampBody String?
The AMP body. See https://amp.dev/about/email/
getter/setter pair
apiTemplate String?
The SocketLabs API template to use for this email. Use the SocketLabs "Email Designer" to create the template up front.
getter/setter pair
charset String?
Which character set to use. Defaults to UTF8
getter/setter pair
from Email
The sender (your organisation).
final
hashCode int
The hash code for this object.
no setterinherited
htmlBody String?
The HTML body.
getter/setter pair
mailingId String?
The mailing ID.
getter/setter pair
mergeData MergeData?
MergeData to be used for this email. This is mostly used in conjunction with apiTemplate.
getter/setter pair
messageId String?
See https://help.socketlabs.com/docs/message-mailing-ids
getter/setter pair
replyTo Email?
The ReplyTo header.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subject String
The subject of the email.
final
textBody String?
The plain text body.
getter/setter pair
to List<Email>
A list of recipients.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Returns the JSON representation of this message.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited