Exclude send to email address

I suggest a function to setting the exclude email address (specific email address like email@example.com or domain such as @example.com)
Because we need to disable sending email for developing site, but we need to test send out email content. So we need to allow send out email to specific email address or our own email domain.