CreateInboxDto class

Constructors

CreateInboxDto({String? emailAddress, String? domainName, String? domainId, String? name, String? description, bool? useDomainPool, List<String>? tags = const [], DateTime? expiresAt, bool? favourite, int? expiresIn, bool? allowTeamAccess, CreateInboxDtoInboxTypeEnum? inboxType, bool? virtualInbox, bool? useShortAddress})
Returns a new CreateInboxDto instance.

Properties

allowTeamAccess bool?
DEPRECATED (team access is always true). Grant team access to this inbox and the emails that belong to it for team members of your organization.
getter/setter pair
description String?
Optional description of the inbox for labelling purposes. Is shown in the dashboard and can be used with
getter/setter pair
domainId String?
ID of custom domain to use for email address.
getter/setter pair
domainName String?
FQDN domain name for the domain you have verified. Will be appended with a randomly assigned recipient name. Use the emailAddress option instead to specify the full custom inbox.
getter/setter pair
emailAddress String?
A custom email address to use with the inbox. Defaults to null. When null MailSlurp will assign a random email address to the inbox such as 123@mailslurp.com. If you use the useDomainPool option when the email address is null it will generate an email address with a more varied domain ending such as 123@mailslurp.info or 123@mailslurp.biz. When a custom email address is provided the address is split into a domain and the domain is queried against your user. If you have created the domain in the MailSlurp dashboard and verified it you can use any email address that ends with the domain. Note domain types must match the inbox type - so SMTP inboxes will only work with SMTP type domains. Avoid SMTP inboxes if you need to send emails as they can only receive. Send an email to this address and the inbox will receive and store it for you. To retrieve the email use the Inbox and Email Controller endpoints with the inbox ID.
getter/setter pair
expiresAt DateTime?
Optional inbox expiration date. If null then this inbox is permanent and the emails in it won't be deleted. If an expiration date is provided or is required by your plan the inbox will be closed when the expiration time is reached. Expired inboxes still contain their emails but can no longer send or receive emails. An ExpiredInboxRecord is created when an inbox and the email address and inbox ID are recorded. The expiresAt property is a timestamp string in ISO DateTime Format yyyy-MM-dd'T'HH:mm:ss.SSSXXX.
getter/setter pair
expiresIn int?
Number of milliseconds that inbox should exist for
getter/setter pair
favourite bool?
Is the inbox a favorite. Marking an inbox as a favorite is typically done in the dashboard for quick access or filtering
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
inboxType CreateInboxDtoInboxTypeEnum?
Type of inbox. HTTP inboxes are faster and better for most cases. SMTP inboxes are more suited for public facing inbound messages (but cannot send).
getter/setter pair
name String?
Optional name of the inbox. Displayed in the dashboard for easier search and used as the sender name when sending emails.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tags List<String>?
Tags that inbox has been tagged with. Tags can be added to inboxes to group different inboxes within an account. You can also search for inboxes by tag in the dashboard UI.
getter/setter pair
useDomainPool bool?
Use the MailSlurp domain name pool with this inbox when creating the email address. Defaults to null. If enabled the inbox will be an email address with a domain randomly chosen from a list of the MailSlurp domains. This is useful when the default @mailslurp.com email addresses used with inboxes are blocked or considered spam by a provider or receiving service. When domain pool is enabled an email address will be generated ending in @mailslurp.{world,info,xyz,...} . This means a TLD is randomly selecting from a list of .biz, .info, .xyz etc to add variance to the generated email addresses. When null or false MailSlurp uses the default behavior of @mailslurp.com or custom email address provided by the emailAddress field. Note this feature is only available for HTTP inbox types.
getter/setter pair
useShortAddress bool?
Use a shorter email address under 31 characters
getter/setter pair
virtualInbox bool?
Virtual inbox prevents any outbound emails from being sent. It creates sent email records but will never send real emails to recipients. Great for testing and faking email sending.
getter/setter pair

Methods

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

Operators

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

Static Methods

fromJson(dynamic value) CreateInboxDto?
Returns a new CreateInboxDto instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) List<CreateInboxDto>
mapFromJson(dynamic json) Map<String, CreateInboxDto>
mapListFromJson(dynamic json, {bool growable = false}) Map<String, List<CreateInboxDto>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.