emailAddress property
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.
Implementation
String? emailAddress;