Java Documentation

Send and receive emails in Java applications and tests. Create real email addresses on demand.

MatchOption

Properties

Name Type Description Notes
field FieldEnum The email property to match on. One of SUBJECT, TO, BCC, CC or FROM [optional]
should ShouldEnum What criteria to apply. CONTAIN or EQUAL. Note CONTAIN is recommended due to some SMTP servers adding new lines [optional]
value String The value to compare to the field using EQUAL or CONTAIN [optional]

Enum: FieldEnum

Name Value
SUBJECT "SUBJECT"
TO "TO"
BCC "BCC"
CC "CC"
FROM "FROM"

Enum: ShouldEnum

Name Value
CONTAIN "CONTAIN"
EQUAL "EQUAL"